Highlighted

Drop-Down List Binded to a Numeric Field

Avatar

Guest

28-01-2009

I am creating an Order Form. I have a Drop-Down List with a bunch of sizes listed in it. Each time a client chooses a size I want them to see a different price populate in a numeric field beside the drop-down list.



I was able to set the prices I needed in the Binding Tab of the Drop-Down List, but now I don't know how to bind those price values to the numeric field beside.



Any help would be greatly appreciated.



Thanks,

Replies

Highlighted

pguerett

29-01-2009

So I am assuming that you have set the Text and Value table in the Binding Palette. If you want to get the text value use the formattedValue if you want the Value then use rawValue. So if the user selects a size from the dropdown you can add this code to the exit event:



Fieldname.rawValue = this.rawValue;



and that will put the price into the field for you.