AnsweredAssumed Answered

How to script this?

Question asked by jiang_aq on Mar 21, 2017
Latest reply on Mar 21, 2017 by jiang_aq

I have two fields:

SeatNo

Qty

 

I wanna validate both of them when inputting, for example:

if qty=3, when I input SeatNo. as "3A4B5C" or "3A 4B 5C" or "3A,4B,5C" , it is passed.

if qty=3, when I input SeatNo. as "3A4B5C6D" or "3A 4B 5C 6D" or "3A,4B,5C,6D"it is failed, because there are 4 seats No.

 

vice versa:

if SeatNo is  "3A4B5C6D" or "3A 4B 5C 6D" or "3A,4B,5C,6D", when I modify qty=3, it should be failed, show error messagebox.

 

How can I do it?

Outcomes