Skip to main content
Inspiring
January 23, 2016
Question

Field Validation Upon Submission

  • January 23, 2016
  • 1 reply
  • 895 views

I have a form with a couple Required Fields that have required formatting scripts included.

For instance, I have a field for an email address with a script that gives them an error if a valid address is not inserted. I also have a field for a phone number where they need follow a specific format. If they do not, they get a warning.

However, they can choose to ignore the warnings that appear when they enter incorrect information and carry on to the next fields in the form.

My question is... how can I ensure that the form will not be submitted UNLESS they correctly fill out the 2 fields mentioned above?

As it is now, the form will submit regardless of what they include in the fields.

Do I need to program the specific fields in question to absolutely reject anything that is incorrect?

Thank you,

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
January 23, 2016

Do I need to program the specific fields in question to absolutely reject anything that is incorrect?

Yes.

Inspiring
January 23, 2016

Thank you. What kind of a script would I need?

try67
Community Expert
Community Expert
January 23, 2016

A custom validation script that examines the input (event.value) and accepts or rejects it by setting event.rc to true or false, respectively.