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:
- Create an enumeration and map it to a radio button. Suppose your radio button has two options:
- Option A
- Option B
- Now, on the selection of these two options, I want to make visible two particular dropdowns.
- 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.
- In the Copy To section, map an entity attribute to store the value.
- The structure of the entity should be in a code: value pair.
- 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.
- 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.
- 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