Skip to content

Select Field ​

The Select field type automates single-choice dropdown menus (<select>) by matching options against Excel (.xlsx) row values or static default text.


Basic Configuration ​

PropertyDescriptionExample
Field NameUnique identifier for the field in the workflowcountry, department
Field TypeSet to SelectSelect
Field Selector TypeElement locator methodSelector, XPath, Id
Field Selector QueryCSS selector or XPath targeting the <select> elementselect[name="country"], #category
Field ValueOption text, value, or column to matchExcel (.xlsx) column name or static value

Matching Strategies ​

Under Match options as, choose how the extension identifies which <option> to select:

StrategyDescriptionExample
Through Name/Value (Default)Matches either visible label text or underlying value="" attribute.US or United States
Equal to NameMatches only against the visible option text (exact label).United States
Equal to ValueMatches only against the HTML value attribute.value="US"
Search Name in Any PositionMatches if the search term appears anywhere inside option text.States matches United States
Match Name from Start-EndMatches if option text starts or ends with the provided value.United or States
Through Option Serial NumberSelects an option by its 1-based numerical index.1 selects the 1st option

Field Settings ​

Configure dropdown-specific behaviors to handle dynamic lists and text variations:

Dynamic Loading & Timing ​

  • Wait until max options in the dropdown element: Waits until the dropdown contains at least the specified number of options (default: 2). Useful for AJAX-loaded or cascading dropdowns.
  • Wait until the dropdown option is selected: Pauses until the selected option is confirmed active before advancing to subsequent fields.

Text Normalization ​

  • Convert the text into lowercase letters and then match the text: Enables case-insensitive matching (united states matches United States).
  • Remove extra space from option text then match the text: Trims leading/trailing whitespace and normalizes multiple spaces into a single space.
  • Remove all space from option text then match the text: Strips all whitespace for strict comparison (UnitedStates matches United States).

Modifying & Adding Dropdown Options ​

In dynamic workflows, you may need to update an existing choice or inject a new option into the <select> element before making a selection.

How to Edit an Existing Option (<option>) ​

To update an existing option's attributes (such as changing its value attribute), use the insertElementAttribute predefined function:

PropertyValue / SettingDescription
Field TypeFunctionSet to predefined function runner
Function NameinsertElementAttributeUpdates or adds element attributes
Selector TypeXPathPinpoints the specific <option> node
Selector Query//select/option[@value="100"]Targets <option> with value="100" inside the <select>
Field Valuevalue,1000Format: attributeName,attributeValue (updates value="100" to value="1000")

WARNING

Required Setting: Because <option> elements inside a standard <select> dropdown have no visible layout box when the dropdown is closed, you MUST turn OFF the field option: Wait until element is visible in the page. in Field Settings.

Leaving this option ON will cause a visibility timeout error.


How to Add a New Option (<option>) ​

To dynamically insert a new choice into an existing dropdown, use the Insert & Remove HTML field type:

PropertyValue / SettingDescription
Field TypeInsert & Remove HTMLDirect DOM element injection
Selector TypeSelector or XPathTargets the parent <select> element
Selector Queryselect#country or //select[@name="category"]The target dropdown container
Position of New HTML ContentbeforeendInserts the new option at the end of the dropdown list
Field Default Value<option value="1000">1000</option>Raw HTML markup for the new option

TIP

  • Use beforeend to append the option at the bottom of the list.
  • Use afterbegin to insert the option as the very first item in the dropdown.

Troubleshooting ​

IssueLikely CauseSolution
Option not foundCapitalization mismatch or extra spacingTurn ON lowercase matching or space normalization.
Dropdown empty when field runsOptions load asynchronously via AJAXTurn ON Wait until max options in the dropdown element and set count to 2 or higher.
Selection doesn't trigger page updatesCustom UI library (e.g. React/Vue/Material select)Use Material Single Select or trigger events using JavaScript Events.

Next Steps ​