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

Wish to see a specific feature/change in future releases? Feel free to post it here, and if it gets enough "likes", we'd definitely include it in future releases!
Post Reply
claudiu111
Posts: 12
Joined: 2014-02-03 12:20

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

Post by claudiu111 » 2020-02-19 08:49

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.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1814
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

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

Post by jsetzer » 2020-02-19 09:16

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
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

claudiu111
Posts: 12
Joined: 2014-02-03 12:20

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

Post by claudiu111 » 2020-02-21 12:18

Thanks. I also use two fields. Maybe this option can be implemented in the future.

Post Reply