Skip to content

Select Dropdown Option By Value: SELECTBYVALUE

The Select Dropdown Option By Value action is used to select an option from a dropdown list based on its value attribute. This action only works on HTML <select> elements and allows selection using the underlying value, which is often different from the text displayed in the dropdown.

Example: Suppose you have a dropdown for countries, and you want to select the country “Canada” using its value.

The HTML code for the dropdown might look like this:

scrn-html-code-for-country-dropdown-select-canada

Steps to configure:

  1. Select the Select Dropdown Option By Value action from the Action drop-down.
  2. In the Screen Name field, select the screen where the drop-down is located (e.g., Registration Form).
  3. In the Element Key field, select the drop-down element (e.g., Country).
  4. In the Parameters section, provide the value of the option to be selected, in this case, CA for Canada.
  5. Click Save.

Note: While the steps for adding an Action are identical in both views, the display of the steps changes:

scrn-select-dropdown-option-by-value-tabular-view
Tabular View
scrn-select-dropdown-option-by-value-card-view
Card View

Note: Ensure that the Screen Name and Element Key are pre-defined before using this action.

Expected Outcome on Execution:  The dropdown menu will select the option labeled “Canada” using the value CA, and the option will become the active selection in the dropdown.

Back To Top