Template needs to be saved as Dynamic in order to see those dynamic features working. You have that saved as Dynamic and still have no luck try the following....#1.presence = "visible";xfa.layout.relayout();Note: 1. A button name can not start with "#" hope you are using some meaningful names.
Leo,This is interesting, though it is not the requirement I am working at this time it will help if you can post your finding and results. Also appreciate if you can more details about inserting Listeners.Thank you,
It is trying to execute the code in "change" event as soon as you type in first character. For better understanding if you want to type in "Abc" in the dropdown field it is treated as 3 change events first one triggered as soon as you type in "A".So best way to deal with this is move the code in cha...
Unknown whether you selected "Repeat Subform for Each Data Item" under subform Binding tab. You can check that and leave "Min Count:, Max: and Initial Count:" unchecked. Then you will not run into such problem.<br />again the syntax for add instance is:<br />"_<subformname>.addInstace(1)" //"_" (Und...
try the following....//Invoke the Instance Manager to add one instance of the detail subform. _Item.addInstance(1);//where "Item" is the subform Name //Invoke the recalculate method to include the field values from the added subform in calculations. xfa.form.recalculate(1);
The code I had in my reply is generalized code can be used with any checkBox irrespective of name. No customizations required to get what you need. In the code "this" references the object that code is associated with hence you do not have to specify the name of the object. So use the same code over...
In the 'preprint' event of each checkBox use the following JavaScript.if (this.rawValue == 0) { //not checked this.presence = "hidden";}also use the following in 'postprint' event of each checkBox if you wish to make all those visible.this.presence = "visible";
I have used following code in relation to a dropdown box. This could be your baseline to try on your own. May not need many changes....var doc = event.target;doc.importDataObject(); var MyPar1 = doc.getDataObject();var filename = MyPar1.path;Good Luck;