Buy Now
Sign in

How to make Signature widget field required

ljk , May 09 at 02:50
L
ljk
Hi,
How do I make the signature widget a required field. I don't want someone to be able to submit the form until they have filled in the signature field. Currently my form is not making the person fill in the field before submitting.
I tried adding the signature field in the not empty field of the Server Side Validation event, but that didn't help.
I also don't think that the server side validation is working, because I can put 604-333-333 in the phone field and it isn't being caught even with the field set to validate for Phone or Intl Phone.
You can see the form here: https://www.stuntlist.com/firearms-registration
I don't see any JS errors on the page, but that shouldn't effect the server side validation.
Thank you.
GreyHead
HI ljk,
Do you have an Event Loop action in the pink On Fail box of the Server Side validation action?
Not sure how you make it required on the Client side - it could probably be done with custom Javascript.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
L
ljk
Hi Bob,
So, there is no way to make the signature widget required on the browser side? I was just trying client side because their wasn't a required setting for browser side.
Yes, the Server Side has an event loop in the On Fail, see:
form-setup.JPG
Any idea why the phone field validation isn't working? This is what I have in the Phone fields:
phone-validation.JPG
Thank you.
Attachments
form-setup.JPG
form-setup.JPG
(127.97 KiB)
109 Downloads/Views
phone-validation.JPG
phone-validation.JPG
(24.11 KiB)
126 Downloads/Views
GreyHead
Hi ljk,
For whatever reason both phone validations are the same using: preg_match('/^\+{0,1}[0-9 \(\)\.\-]+$/' (See /libraries/cegcore/libs/validate.php)
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much