Expand my Community achievements bar.

Enable Commit On 'Select' Option in List box

Avatar

Level 2

Hi All,

I have one list box, in list box click event i am not geting selected value, because the 'commit on' property of list box has selected with 'exit' option. There is another option 'select' but it is disabled. Can any body tell me how to enable 'select' option in 'Commit On' property for list box?

Advance Thanks

Prasad Sagala

5 Replies

Avatar

Former Community Member

Prasad,

If I recall correctly, in early versions of Designer commit on 'select' was the implicit action. Subsequently, commit on 'exit' was added as the preferred action which coincided with the addition of 'allow multiple selections'.

Effectively, the event model in Designer 8.x and Designer ES does not support commit on 'select'.

Steve

Avatar

Former Community Member

The best way to get the value that the user chose (on the change event) is to use the command xfa.event.fullText)

Paul

Avatar

Level 2

Hi Paul,

'xfa.event.fullText' is getting me the seleted item name, but i need to get selected item value.

Thanks

Prasad Sagala

Avatar

Former Community Member

Once you have the name ...you can query the DDList to get the itemValue. You will need to get the index 1st before you get the itemValue.

This code will do it for you on the change event:

app.alert(this.boundItem(xfa.event.newText))

Paul