How do I make different drop downs visible on the basis of particular value selection of a radio button

I have a radio button and based on the key selection of this radio button, I want to let the user see a particular dropdown. How do I achieve this?

To achieve this functionality, we can follow the below-mentioned steps:

  1. Create an enumeration and map it to a radio button. Suppose your radio button has two options:
  • Option A
  • Option B
  1. Now, on the selection of these two options, I want to make visible two particular dropdowns.
  2. To extract the value chosen by the user, we will use a Copy Data task, and in the Copy From section, we will use the GETENUMOBJ( ) function. This function has two parameter code and path. In the Code parameter, we will map the enumeration that we are using in the radio button. In the path, we will map the Dropdown element.
  3. In the Copy To section, map an entity attribute to store the value.
  4. The structure of the entity should be in a code: value pair.
  5. Now, we will utilize the copy data task again and copy the stored values in the entity’s attribute into the radio button code and value parameter.
  6. To make the dropdown visible and invisible, we will utilize the Visible/Invisible task and will formulate a Business rule to do it on the basis of the option chosen.
  7. The Business Rule will have a formation like this, RadioButton’s code path is equal to OBJ (Required Value).

Following these steps, you can achieve this functionality.

Thanks @AnushkaGupta
It helped me a lot …

1 Like