If phone number is filled, then must checkbox be checked

  • 17 December 2020
  • 1 reply
  • 7 views

Hi,

we can receive leads phone number only if a checkbox is checked.
So if a lead fills out his phone number (its optional field), must also check the checkbox. If he/she does not check the checkbox and filled the phone number warning a message must popup and the form can not be sent.

Thanks,
Lukas


1 reply

Userlevel 7
Badge +3

Hey Lukas,

It’s possible to achieve the above logic but it would have to be custom coded for your particular form.

Basically, you would have to write some custom validation rules for these 2 fields (phone # and checkbox) and execute it right before the formSubmit event.

This would get you halfway there.

Best,
Hristian

Reply