When we select an option in the drop down field in UI page,that particular action button should appear on the form.

sruthi26
Kilo Contributor

Hi,

I have created an ui page and a drop down field values(xx, yy, zz) .

The use case is:

If i select an option from drop down field(suppose if i select yy),in the below form assume "yy" value(ui action button) beside submit button and there should be no buttons rather than "yy" action button.

Based on selected value in ui page,that particular button should appear on the form. 

find_real_file.png

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

create hidden field on your form and whenever you will save the value on your ui page drop down , it will set there and then in your ui action condition use that ,

 

eg: current.<hidden field name> =='Your value'

View solution in original post

3 REPLIES 3

Nitin61
Giga Contributor

You may try client scripting.

Put the button under section and apply onChange() client script on the field and check for g_form.getValue('field'); based on the value in dropdown field, go for g_form.setSectionDisplay('<Id of button>', true);

Can you elaborate on your answer Please?

 

Harsh Vardhan
Giga Patron

create hidden field on your form and whenever you will save the value on your ui page drop down , it will set there and then in your ui action condition use that ,

 

eg: current.<hidden field name> =='Your value'