- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I am checking some custom validation on my pdf form. If they fails then I don't want user to allow saving of form.
I tried following code on
ArrayOfDeclarationData::preSave - (JavaScript, client)
if ( !ArrayOfDeclarationData.Page1.variables.ValidateField.ValidateMandatory() && !ArrayOfDeclarationData.page2.variables.DeclValidate.ValDeclPages())
{
xfa.event.cancelAction = true;
}
but I have noticed that event is not getting cancelled and user is still able to save form. Even xfa.event.cancelAction is always false even after setting it to true.
Please help me on this issue as I have to only allow user to save user from menu / (ctrl + s) if validation passes.
Thanks
Abhi
Views
Replies
0 Likes
Total Likes