on 09-22-2008 3:30 PM
I am developing an offline interactive form. There is submit button inside, which should check all data and submit the form by email if checking passes.
My problem is that I can not cancel the submit event when the checking failed.
I use Adobe LiveCycle Designer 7.1.3284.
If I use Email Submit Button, I can do validation in presubmit event. But I can not cancel the event. Even there is error in validation, form is submitted anyway.
If I use normal button, I can do validation in Click event. But I can not submit form with code.
Is there anyone who has experience on this issue?
Best Regards,
Jun
Hi Jun,
Use a normal button to validate and set the presence of the E-mail button only if validation is successful, else keep the Submit by E-mail button hidden.
Regards,
Reema.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your solution. Then there are two buttons in the form, one for validating and one for submitting. The problem is that after validating, user can change something and make data invalid, then he still can submit the data with Submit button.
Is there other solution? I think this is a common use case for offline form.
in that case, you can code just one line in the change event of all fields of the form
xfa.form.form1.....button_validation.presence = "visible"
xfa.form.form1.....button_submit_by_email.presence = "hidden"
After click of validate button,
if validation is successful,
xfa.form.form1.....button_validation.presence = "hidden"
xfa.form.form1.....button_submit_by_email.presence = "visible"
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.