Skip to Content
author's profile photo Former Member
Former Member

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

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.



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Feb 01, 2008 at 05:47 AM

    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.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.



  • Posted on Feb 01, 2008 at 03:19 AM

    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.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Satyabrata Panda

      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~ =)



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.