Expand my Community achievements bar.

Drop-Down List Binded to a Numeric Field

Avatar

Former Community Member
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,
2 Replies

Avatar

Former Community Member
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.