Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

problem using resolveNode to change text value

Avatar

Level 2

i have a text field which i am trying to change by using a dropdown.

form1.purchaseOrder.header.DropDownList1::change - (JavaScript, client)

  

if (this.rawValue == 1)

EstimateValid.xfa.resolveNode("caption.value.#text").value = "Due to material price changes throughout the year all our estimates are valid for a period of 30 days unless mentioned otherwise elsewhere in this estimate.";

else

EstimateValid.xfa.resolveNode("caption.value.#text").value = "This is not a V.A.T. receipt.  If you require a V.A.T. receipt please ask for the receipt for the car parts purchased for your car.";

the binding has been set up

any pointers please

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You need to take the xfa out of the assignment, should be just

EstimateValid.resolveNode

not

EstimateValid.xfa.resolveNode

Regards

Bruce

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

You need to take the xfa out of the assignment, should be just

EstimateValid.resolveNode

not

EstimateValid.xfa.resolveNode

Regards

Bruce