Added action is disabled in XML source on a PDF form
Hello, I am working with AEM Designer to map a PDF form and use actions on the form. I added two text field objects and bound data to each of them. Then I added an action to set the value of one of the fields to null if the other field is not empty. I am able to save the action and do not get any errors, but upon previewing the form, the action does not work. In the XML source, I noticed that the action was added as a comment:
//+ Type: Action
//+ Result1: SetFieldValue("$Node2","tonull","")
//+ Node2: FormType[0].Page1[0].Make[0]
//+ Node1: FormType[0].Page1[0].Vin[0]
//+ Condition1: TextField("$Node1","notempty","")
//+ ActionName: Vin.exit
if ((this.resolveNode("$").rawValue != null && this.resolveNode("$").rawValue != "")) {
this.resolveNode("Make").rawValue = null;
}
//-
Can anyone tell me why the action was commented out? This is the first time I am working with actions so I am wondering if maybe there is some other form setting that I am missing? Thanks



