Hello,
I am working on additions to a form that contains a dynamic table that expands using add/delete button and contains several fields including:
MACHINETYPE
ACCESSORY
DESCRIPTION
PRICE
Previously, when you chose the ACCESSORY that you wanted form a drop down, the DESCRIPTION would populate:
topmostSubform.#subform[2].#subform[3].Table1.Item.ItemID::change - (JavaScript, client)
switch (xfa.event.newText)
{
case "100":
Descrip.rawValue = "Measuring Bracket";
break;
Now I wanted to add a simple test to see what the MACHINETYPE was (also coming from a drop down in the table)and set the PRICE accordingly. I thought it would be a simple change - I had figured a simple if loop looking at each of my 4 machine types and then assigning the PRICE. I'm having no luck with it - I can assign the PRICE directly with no issue:
switch (xfa.event.newText)
{
case "100":
Descrip.rawValue = "Measuring Bracket";
Price.rawValue = 10;
break;
...but can't seem to test the machine type and then assign.
I have searched this forum and re-checked out some tutorials and have looked at examples that covered situations that were close, but not exact to what I wanted to do, but things don't seem to be working for me. I'm probably missing something obvious, but I am looking for some help?!?
I'm using Live Cycle/Acrobat PRO 9.0.0
Thanks in advance!
Something(not sure what) must have corrupted my form!
CAMM