- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I see what you mean, seems the execValidate() method call cancels the calculate event. Maybe you can try using the validationState event, which came in with Reader 9.1. This event fires when a field changes from valid to invalid or vice-versa (it also fires after the initialize and if the reason for being invalid changes). So you could put a validationState event at the top of you form (using event propagation) with the following code;
if(form1.getInvalidObjects().length > 0)
{
subform.CompletionStatus.rawValue="Not Complete"
}
else
{
subform.CompletionStatus.rawValue="Complete"
}
Here is a version of your sample that implements this, https://sites.google.com/site/livecycledesignercookbooks/home/form_sample.br001.pdf?attredirects=0&d...
Mandatory fields are only flagged as invalid once an attempt to submit has been made, or a call to execValidate() has been made (or when a field that had a value is cleared). So I have added an execValidate() in the docReady event and also set the form validation properties to not show any error message popups.
Do you have to support earlier versions than 9.1?
Views
Replies
Total Likes