Avatar

Level 2

I'm TRYING not to push my luck with the goodwill of the fine folks here.

I have a reset button on this form that clears out the fields when it is clicked.

The code for the reset button is:

________________________________

form1.Page2.Subform-Page2-info.ResetButton1::click - (JavaScript, client)

xfa.host.resetData();

________________________________

When I click the Reset button, the WOresolution14 DD list still does the following:

a) retains the last fill colour (e.g. in some cases, red)

b) retains the last font weight (e.g., in some cases, bold)

c) the value "0" appears in the field

d) if I click the DDlist, the list of items corresponding to the last "Priority" field setting appear

The Reset button and the field WOresolution14 are on different pages, in different subforms.

HERE'S WHAT I'M LOOKING FOR:

When I click the Reset button, the WOresolution14 field returns to white fill colour, there is no value in the field, no selection items are in the field, and the font weight returns to normal.

Tried this without luck:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

form1.Page2.Subform-Page2-info.ResetButton1::click - (JavaScript, client)

xfa.host.resetData();

//Clear out the WOresultion14 DDlist

WOresolution14.rawValue = "";

WOresolution14.clearItems();

var

vName = WOresolution14.somExpression;

var

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

fieldObj.value

= "255,255,255";

WOresolution14.font.weight

= "normal";

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~