Avatar

Level 10

Hi,

It looks like the script is falling over.

When previewing the form, open the JavaScript Console by pressing Control+J. When you click the reset button, do you get a warning there.

If you have unnamed subforms between the button and the dropdowns, then you will need to resolve the node. Try setting a variable to the resolved node and then use this variable in the script.

xfa.host.resetData();

var oNode = xfa.resolveNode("Page1.Subform-Page1-Info.WOresolution14")

//Clear out the WOresultion14 DDlist

oNode.rawValue = "";

oNode.clearItems();

var vName = oNode.somExpression;

var fieldObj = xfa.resolveNode(vName + ".ui.#choiceList.border.fill.color");

fieldObj.value = "255,255,255";

oNode.font.weight = "normal";

Hopefully that will work for you.

Busy weekend!

Niall