Expand my Community achievements bar.

SOLVED

Validation Error

Avatar

Former Community Member

Hello,

I have set up fileds with specific validation patters for example, when entering dd mm yyyy a message comes up if they have entered too many numbers. However, when the form is completed, the user hits 'submit' which also validates all the fields, and a message shows up if there are any errors. But after hitting 'ok' it still allows the user to sent the information. Why is this?


Thank you in advance for your help!

Nik

1 Accepted Solution

Avatar

Correct answer by
Level 10

That might be because if you might have provided the target URL for the Submit button in the properties.

Keep that property as blank and provide that info into preSubmit event. That way you can controll the form submission.

Sample is here for you to verify..

https://acrobat.com/#d=0rCgvpMlczSWVFng*RDjUQ

Thanks

Srini

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

That might be because if you might have provided the target URL for the Submit button in the properties.

Keep that property as blank and provide that info into preSubmit event. That way you can controll the form submission.

Sample is here for you to verify..

https://acrobat.com/#d=0rCgvpMlczSWVFng*RDjUQ

Thanks

Srini

Avatar

Former Community Member

Hi Srini,

Once the form is completed it would be sent to a secure website. If I leave the url blank in the submit field then where do i enter the url it is being sent to?  Also, the form is being submitted as XML data.

Avatar

Level 10

As I mentioned earlier, you can send the URL value from the code itself.. If you can see sample I sent you, you can find how I am submitting the form. In the sample it is submitting to an email. But you can change it to submit to a URL instead..

If you still have issues, please send the form to me I can check it for you..(LiveCycle9@gmail.com)

Thanks

Srini