I have a dynamic form that I've created with a message at the end reminding the customer to save a copy for their records. What I'm not sure how to do, is have the user go back to the form if they click cancel. Here's my code for the docclose event:
xfa.host.messageBox("Did you submit your order and save a copy for your records?",2,2)
After the message comes up, the document closes when either option is clicked. How do I get it to go back to the form with the data still filled in, so they can do the options I mentioned above? (Save/submit)
I'm still learning mode, and I'm not sure where I would put the app.response? I had the messagebox at the root in the docclose event. Would I still use the docclose? Can you give me an example of code for the app.response?
I tried putting that code in on a test form and it does give me the boxes that it was suppose to. But it still gives me the same situation, when I type no or click cancel, the form is still gone and I can't do anything. It also doesn't prompt to save or submit the form. I did the code in the same place, docclose. Am I just entering the code in the wrong event?
I can definitely see how that would be. Thank you for everything. That helped me out a lot. Do you happen to know how I can get the application to close under the "yes" option of the code you supplied?
That works! Thank you! Is there a way to do the same thing, only to have a yes/no in the responsebox. I need to make this as simple as possible for the user. Maybe instead of using the OK/CANCEL have those be the yes or no clicks for the answer without an actual answer box?? (Let me know if that doesn't make an ounce of sense.)