Expand my Community achievements bar.

dropdown

Avatar

Level 2

i have one dropdown box with name and phonenumber,when phone number is selected, phone number should numericals and it should phone number format if user not enter charcter format or other digits it should display pop message like phone no should be 222-222-2222 and it should'nt take character.

1 Reply

Avatar

Level 10

Hi,

There are a couple of approaches.

If you use a numeric field, then you could set the display pattern to display the result as you want it: num{999'-'999'-'9999} see Object > Field palette. Maybe adda small bit of supporting text in medium grey, small font telling the user how to input the number.

There are script solutions that you can use for textfields which prevent alphabet characters being inputted. Overall I think a display pattern would work best, as it does not involve script OR annoying dialog windows.

Hope that helps,

Niall