Expand my Community achievements bar.

SOLVED

Drop Down List

Avatar

Level 2

Is there a way to select a value from a drop down list but have it display different text.  I need the user to see the full text but when they select it I only want an abbreviation to display.

For example if I select Pat Brown from my drop down list I want the value to display as PB.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

There is an example here on page 2 on the right hand side: http://assure.ly/ewrLMo.

Hope that helps,

Niall

View solution in original post

5 Replies

Avatar

Level 7

You can put this in the exit event of the dropdown (if formcalc):

if ($ == 2) then

$.formattedValue = "PB"

endif

(assuming you have specified item values in the binding palette and that Pat Brown was 2).

Avatar

Level 2

That solution worked great.  However I am abbreviating the selection display to save space and once I change the size of the drop down list my selections are cutoff.  Is there a way to change only the size of the list when it displays but not the drop down list box?

Avatar

Correct answer by
Level 10

Hi,

There is an example here on page 2 on the right hand side: http://assure.ly/ewrLMo.

Hope that helps,

Niall

Avatar

Level 2

I have downloaded the example and entered the mousenter and exit event as on the example and my drop down list does not expand.  I have even copied their drop down list into my form and it will expand.  Please help.

Avatar

Level 10

Hi,

Make sure the form is saved as a Dynamic XML Form in the Save-as dialog.

Niall