Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

Newby would appreciate help with List Box

Avatar

Former Community Member

HI all,

In the process of designing a simple form that has a list box containing multiple salary designations.

For each of those designations eg Accountant, Accounts Payable supervisor, I have specified an item value in the Binding tab which happens to be the salary of the position

What I would like to happen is that when a selection is made in the list box i.e. operator selects say Accountant, the item value (in this case the salary) populates another field which is used later for costing calculations.

Help unfortunately is not all that helpfull so would appreciate any assistance you might be able to provide and thanks in anticipation  

1 Accepted Solution

Avatar

Correct answer by
Level 10

For example to populate a NumericField1 on the form when the selection was made in ListBox1, you need to use some thing like this.

Place the code in the Exit event of the ListBox. Language is JavaScript.

     NumericField1.rawValue = ListBox1.rawValue;

rawValue will give the value that was assigned in the Binding tab.

Hope this helps.

Thanks

Srini

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

For example to populate a NumericField1 on the form when the selection was made in ListBox1, you need to use some thing like this.

Place the code in the Exit event of the ListBox. Language is JavaScript.

     NumericField1.rawValue = ListBox1.rawValue;

rawValue will give the value that was assigned in the Binding tab.

Hope this helps.

Thanks

Srini

Avatar

Former Community Member

Thanks Srini...that works fine

Your assistance is greatly appreciated

Avatar

Former Community Member

Thanks Srini...that works fine

Your assistance is greatly appreciated