Expand my Community achievements bar.

SOLVED

how to disable drop-down list field from entering value

Avatar

Level 3

I got a dropdownlist box field and pre-list some numeric values on it :

say a list of page numbers,

11

22

33

41

42

43

52

..

I put some codes on change event so that once an item is clicked, it will be directed to the specific page immediately.

But the case is some users would like to enter the field and type a number rather than click.

If he tries to type 42, change event will get him to page 41 instead (as the 1st char "4" is matched),

and then accidentally amend a field there putting the rest char "2" on it.

so how can I disable typing on a drop down field?

Rgds.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

If you select the dropdown and go to the Object > Field palette. There you can un-tick "Allow custom entry". This will prevent the user from being able to type into the dropdown.

With dropdowns I prefer scripting in the exit event.

Good luck,

Niall

Assure Dynamics

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

If you select the dropdown and go to the Object > Field palette. There you can un-tick "Allow custom entry". This will prevent the user from being able to type into the dropdown.

With dropdowns I prefer scripting in the exit event.

Good luck,

Niall

Assure Dynamics

Avatar

Level 3

Dear Niall,

It works! Thanks for that.

Rgds.