Hello,
i have a drop-down field in the form with few values. now i want to allow users to add more values as necessary. what are the possibilities to achieve this functionality?
Thanks in advanced.
Hello,
i have a drop-down field in the form with few values. now i want to allow users to add more values as necessary. what are the possibilities to achieve this functionality?
Thanks in advanced.
adactyly, what i was looking for this solution. Appreciated for your help.
Hi Rakki,
You need add js code in the portal to achieve it:
js code(Replace the original field name and value with your own):
$(document).ready(function () { MyFieldChanged(); $('#custom_preference').on("change", MyFieldChanged); }); function MyFieldChanged() { $("#custom_text").closest("tr").hide(); var selectedValue = $('#custom_preference').val(); if (!!selectedValue && selectedValue == 881990007) { $("#custom_text").closest("tr").show(); } else { $("#custom_text").closest("tr").hide(); } }
Field Properties:
Result:
Hello Leah,
Thanks for your reply. Sorry may be my explanation was not clear enough. i know we can add more values in the behind but my question was how we can allow users to add values on fly during the form submission. Now i am looking to allow user as soon as they select value "Other" from preferences drop down field then another Text field will popup just below preferences field and allow them to enter value anything. what are the ways to do this please?
Thanks
Hi Rakki,
1.Find out to which table(entity) the form belongs?
2.Go Settings > Customizations > Customize the system > Entities to find the entity > Fields.
Open the drop-down field, then you can add values as your needs.
André Arnaud de Cal... 291,661 Super User 2024 Season 2
Martin Dráb 230,379 Most Valuable Professional
nmaenpaa 101,156