To enable a text box for a choice selected for a choice field

nityadadala
Mega Contributor

Hi,

I have a requirement in implementation of a button functionality.

Required solution On:

1.How to enable/configure a text box when "Others" choice is selected from the drop-down field.

Also please mention if any max length need to be set for this text box.

Note: this requirement is configured in scoped application

Can anyone help me with the solution in implementation of these both requirements.

Thanks,

Nitya Dadala.

4 REPLIES 4

ursnani
Giga Guru

Hi Nitya,


Correct me If i am wrong,



So if you select Other from Dropdown a text box should appear is that what you want, then you can go for UI policy .


Harsh Vardhan
Giga Patron

Hi Nitya,



if i am not wrong you want to build whenever you will select other from your choice list then you want to allow user to write something on text field (assuming it is string type field).else it should be not editable.



you can either achieve it though UI Policy.


put the condition <choice field name> is "other" then text type field is read only true.



Let me know if it does not help you


Hi harsha Vardhan,



Instead of   using a separate field to fill(text field), Can't we get the requirement like,when we select "others" choice,a virtual text box appears and then when we enter the text in that box,that value will get saved in that choice field label?



Please confirm me if this functionality is possible for the fields on the form.



Regards,


Nitya lakshmi.


souren0071
Tera Expert

Hi Nitya,



You can not configure a field or variable based on client side scripting. You can just create the text field and hide it. It will be visible/ editable when you select dropdown as others.



Please create an UI policy on the same table with conditions <fieldname> is others and save it. Then create an UI policy action from the bottom of the page. Now select your text field and set visible true, read only f



alse(whichever you wish to make it visible or editable) and submit. Dont forget to check reverse if false checkbox in UI policy.



Capture.PNG



Regards,


Souren