A field holds
Passes when a form field on the page equals, contains or matches a value, or is empty.
The field field op value
Details #
field is the field's id, name, number (the Nth input) or a selector. op is equals, contains, matches (a regular expression), isEmpty or isNotEmpty. A checkbox's value is true or false.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
field | text | Yes | The field. Required. | |
op | one of | equals contains matches isEmpty isNotEmpty | One of the operations above. | |
sample | any value | |||
tab | any value | Which tab. | ||
value | text | What to compare with. |
Examples #
Only when the email field is empty
Do
- If the field “email” is empty
- Fill in 1 field on the page
- Else