Page 1 of 1

When selecting *Other from dropdown, create new field for text input

Posted: 2020-02-19 08:49
by claudiu111
Hi,

It would be great if we could have this option. Per example let's say I have a drop down with 3 values: Uk, Us, Other country.
When selecting Other country, a new field should appear for manual text input.
Thank you.

Re: When selecting *Other from dropdown, create new field for text input

Posted: 2020-02-19 09:16
by jsetzer
The way I do it in such situations:
Have 2 fields, a dropdown and an input. If user selects "Custom" from dropdown, I use the value from the input field, otherwise the selected dropdown item.

You can even use javascript to hide the input if option != "Custom".

Many times I have a third readonly field. After insert or after update I check the selected dropdow value and take whether the selected option OR the value from my custom input field and put it into the third field. Having this third field makes it easier for calculations or for lookups from other tables.

Hope this gives you a starting point.
Best regards,
Jan

Re: When selecting *Other from dropdown, create new field for text input

Posted: 2020-02-21 12:18
by claudiu111
Thanks. I also use two fields. Maybe this option can be implemented in the future.