Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

validate field with telephone # format

Avatar

Level 4

Hello,

I have a field which is formatted for a telephone # (111) 111 1111. if someone enters less than the 10 digits it allows the user to go on, and when they 'submit' the form, an error message comes up indicating the correct format, but then still allows the form to be submitted once you hit 'ok' before fixing the error. Why is that? Can anyone help explain?


Thank you in advance

0 Replies

Avatar

Level 10

That's probably dependent on how you are submitting the form. For example, if you place the Submit button on the form and place the Submit URL directly in the properties, you do not have control on the submission. Even if your input validation fails, the form will be submitted.

To fix this, remove the submit URL from the button properties and place it in the code.

I have a sample form done for sending the email which you can change it according to your need and try..

https://acrobat.com/#d=Pfg33oOuWX*P0nVXpLVuWw

Thanks

Srini

Avatar

Level 4

I have the submit button but I dont have the proper URL yet, as my workplace has to have this set up. With that being said, do I have to wait to have

the url in order to make this field validate correctly?

Avatar

Level 10

Yes. You can get more control when you provide the submit URL in the code rather than in the properties.

You can do all the validations and then only you can submit the form to the URL.

Thanks

Srini