Forums

How to make Signature widget field required

ljk 09 May, 2018
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 09 May, 2018
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
ljk 09 May, 2018
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:


Any idea why the phone field validation isn't working? This is what I have in the Phone fields:

Thank you.
GreyHead 10 May, 2018
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
This topic is locked and no more replies can be posted.