cancel
Showing results for 
Search instead for 
Did you mean: 

Field Validation on Form Save

Former Member
0 Kudos

Hi,

We need to validate the form inputs when user tries to save the Offline Form.

Like, If a field is mandatory and user hasnt filled the same, he/she should not be allowed to proceed with Saving of the form.

I tried with PreSave and Form.execValidate method, but couldnt find any handle over the Adobe Readers Save button.

Any hints, suggestions would be really helpful.

thanks,

Mausam

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

To make fields mandatory , you can use the option available on the Value tab

Type :User Entered :Required.

This way you can make sure that they filled in the required fields.

In addition to this if you need to do some other validation then you can go for scripting.

Regards,

sasi

Former Member
0 Kudos

Hi Sasi,

Making the field type as "User Entered: Required" doesnt stop user from saving the form.

Scripting can be done. no doubt about that but where to write the script which stops user from Saving the form?

Thanks,

Mausam

Former Member
0 Kudos

Hi Mausam,

Why user can't save the forms , that the question. User can't populate your forms in several steps ?

I got form where field are mandatory and some of them must have specific value . for this i'll set them as mandatory and for those i got to check value as "activate" in value tab "Validation Script Error" and i wrote javascript on event validate for checking value .

hope this help you .

Best regards.

Former Member
0 Kudos

Hi,

Use the click event of the save button.

Regards,

sasi