cancel
Showing results for 
Search instead for 
Did you mean: 

(URGENT) Check if fields in Interactive Form is empty before submit.

Former Member
0 Kudos

Hi all,

I need to validate my form to make sure that when a user clicks on the submit button, it should check if all the fields are being filled up, if fields are left empty, a message/error should promt telling the user to fill up the form before submitting the form.

Once all fields are filled then proceed with submitting.

Does anyone have any codes that u can provide me or help me with?

Thanks In Advance.

Regards,

JingXuan

Accepted Solutions (1)

Accepted Solutions (1)

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

I understood what you have done. You just put the simple button.

You did not specify any action with it.

Actually tell me what you want to do with the button.

For now you can try with the EmailSubmit Button and just check the functionality.

Remove the earlier button .. Drag the email submit button to the form and try it out.

Hope you will get the idea.

Cheers

Satya

Former Member
0 Kudos

Hi Satya,

Oh wow!! Ur amazing!! I got prompted!! wahahha..

Satya, i give u 10points, im gonna post another qns, could u ans me there? so i can award u points again =X

Its regarding using a normal button to validate my fields not being empty and using an IF ELSE statement.

Regards,

JingXuan

Answers (1)

Answers (1)

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

There is a default functionality provided by Adobe... If all your fields are field, you can not submit. It will prompt .. to fill the form.

Only you have to mark those field as mandatory.

So select the field -> Go to Object Pallet -> Value Tab -> select the type as User entered Required

This will solve your problem.

You can also customise the requirements through scripting language.

cheers

Satya

Former Member
0 Kudos

Hi Satya,

wow thanks, didnt think of it before, but, how do i specify that it will prompt the user to enter the required fields upon clicking on the submit button?

Regards,

JingXuan

i042339
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Only those fields which are Mandatory.. put user entered required and rest other fields you leave as User Entered - Optional. Onclick of Submit .. it will mark those fields with red colour boxes and will prompt a error message and you will not be able submit the form.

Please award points if your problem is resolved.

Cheers

Satya

Former Member
0 Kudos

Hi Satya,

I changed the fields to user entered required, and dragged a submit button onto my form, but even after i deploy my form, i did not enter anything into my form and clicked on the submit button, nothing happened, it loaded for awhile and nothing happened, there wasnt any prompt or red boxes u mentioned.

Once resolved points will be awarded of cause~ 😃

Regards,

JingXuan