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

Hard Stop error message in offline interactive form

Hello All,

We are working on an offline interactive adobe form.

In the form, we are using formcalc(xfa.host.messageBox) for the event preSave to show an error message based on certain condition. When user tries to save the form, if the condition is satisfied then he gets the error message. He clicks OK and can bypass the message and save the form.

Our requirement is such that user should not be able to bypass the error message and form should get saved only if it is filled in correctly.

Please let us know a solution/workaround by which we can give a hard stop message to the user and then user is able to save the form only after correcting the form values.

Thanks,

Radhika

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2011 at 05:46 AM

    Any ideas on this. Please help!!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 09, 2011 at 08:24 AM

    HI Radhika,

    Try this.

    xfa.event.cancelAction = 1;

    The above code specifies whether to cancel a forthcoming action. This code applies only to the following scripting events: prePrint, preSubmit, preExecute, preOpen, and preSign.

    If it wont works for pre-save,you cannot stop the save from . So you can do validation on the Pre-Save event . The best way you can do is to warn the user, and maybe highlight the fields.

    Regards,

    Shaira.

    Add a comment
    10|10000 characters needed characters exceeded

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.