If phone number is filled, then must checkbox be checked

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

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