Conditionally require field

  • 20 October 2020
  • 1 reply
  • 3 views

Badge +4

Hi all,

Is it possible to make a filed mandatory if another field is not empty?

I have two fields and my goal is if the user fill one field the other field become mandatory?

Thanks in advance for your help.

 


1 reply

Userlevel 6
Badge +22
Hi,

Yes this is possible and done with a validation rule.
If you have two controls named Control1 and Control2 and you want Control2 to be compulsory if Control1 is not empty you just add the validation rule to Control2.
Rule:
not(isNullOrEmpty(Control1))

Reply