Expand my Community achievements bar.

SOLVED

Custom entry dropdown

Avatar

Former Community Member

hi

I have a dropdown in my form which has values in CAPS, i have made it as "Allow custom text entry" dropdown.

The problem is when user makes a custom entry in small letters, No suggestions comes up in the dropdown as all values are in CAPS.

I want the suggestions to some even if user enters in small letters. how can it be achieved?

Pls help.

Thanks

Abhiram

1 Accepted Solution

Avatar

Correct answer by
Level 10

I can't check syntax until later, but the following in the change event should work:

xfa.event.change = xfa.event.newText.toUpperCase();

Niall

View solution in original post

6 Replies

Avatar

Former Community Member

Hi Naill,

Sorry for the late reply.

I have used the code in the exit event but still the problem persists. The text gets converted to upper case after the exit from that field but the requirenment is the user should be force input in caps.

Pls. help

Thanks

Abhiram

Avatar

Correct answer by
Level 10

I can't check syntax until later, but the following in the change event should work:

xfa.event.change = xfa.event.newText.toUpperCase();

Niall

Avatar

Former Community Member

Thanks Naill. Its working.

Just a small change in the code-

xfa.event.change = xfa.event.change.toUpperCase();

one more small question on this. When the user starts typing in the dropdown,it doesnt get opened(in other way the suggestions doesnt come up) even if the text is same as in the dropdown values.

On the other hand, if the user opens the dropdown manually and then if he enters, the suggestions come up.

Is there a way so that whenever user starts entering in the dropdown the suggestions should come automatically?

Thanks

Abhiram

Avatar

Level 10

Hi,

Here is an example that may help you: http://assure.ly/mP5Lud.

Good luck,

Niall