Skip navigation
Bamboomania
Currently Being Moderated

Problem with xfa.event.cancelAction in Reader X

Feb 3, 2011 10:23 PM

Hi Experts,

 

I use LCD ES 8.2 to make a form which checks the mandatory fields in presign event and in case some left with blank set xfa.event.cancelAction = 1 to make the signiture procedure to stop.

This check and stop logic was working wonderfully in version 9 (Reader and Pro) but when I tested in Reader X, it seems something is not working well.

 

Once I set xfa.event.cancelAction to 1, it seems that it is not resetted to zero.

In other words, none of the events work once the xfa.event.cancelAction was set to 1...

 

Is this some kind of change that Adobe made?

Could somebody advise how to make it work again?

 

Thanks in advance

 
Replies
  • Currently Being Moderated
    Feb 4, 2011 2:58 AM   in reply to Bamboomania

    Hi,

     

    That is interesting. I can't say what is going on but it seems like a bug to me.

     

    XFA Spec 3.1 states:

     

     

    A Boolean flag which is both readable and writeable. This flag is cleared by the XFA processor at the beginning of an action such as submitting data to a host. Setting this flag at any time before the action is consumated causes the action to abort and a cleanup process to take place. Once the action has been consumated the effect of this flag is undefined.

     

    This flag may be set either by script or by the XFA processor. Scripts must not attempt to clear this flag.

     

     

    I can't locate a copy of XFA Spec 3.3, which would relate to Acrobat/Reader X. This may be because the version of LC Designer supporting XFA Spec 3.3 hasn't been released yet.

     

    I also have an example that works in Acrobat/Reader 9.1, but not in Reader X. The cancel action is wrapped in an if statement.

     

    Print cancelAction

    This example uses the cancelAction to prevent printing if mandatory fields are not filled in. http://assure.ly/ej9Syg

     

    Note that normally the validationState will clear the red highlight as information is typed into the fields. However in Reader X the red highlight is not cleared. In addition if the print action is cancelled, then the print button ceases to work.

     

    I would be inclined to report as a bug, unless someone else has a better handle on this. https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

     

    Good luck,

     

    Niall

    Assure Dynamics

     
    |
    Mark as:
  • Currently Being Moderated
    May 25, 2012 7:26 AM   in reply to Bamboomania

    Did you report the bug?  If not, I will because I am having the same issue.  After cancelEvent, none of the buttons or select lists are working in Reader X.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Incoming Links

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points