I'm trying to get the value from an xml file and then adding conditions to those values. The code I have goes something like this:
for some reason, it is not getting the value.
If the value of the field "vehiclOfNonVehiclFlag" is V, then "N° de chassis: " should appear in the "nrSerieChassisTextField" field. If it's "N", then N° de serie should appear in the "nrSerieChassisTextField" field.
Now the field just remains empty and I have no idea how to resolve this. Here is a snap from the XML file:
The field I am using, "vehiclOfNonVehiclFlag", currently has the value "V" in the xml file.
Can you provide the code for your getElementById() method?
And in this case it seems like you just want to use the standard resolveNode() method?