Use this extension to show, hide, enable, or disable form fields and campaign elements (images, text) based on what a user selects or enters in another field. A common use case: show a free-text "Other" field only when a user picks "Other" from a dropdown.
Installation
- Open your profile menu in the top-right corner of your Digioh Account.
- Select Extensions.
- Find Hide or Disable Fields Based on Form Input under the Form Functionality section and install it.

- Click Publish to Your Site to activate the extension.
Configuration
The extension is configured through field-level metadata in the Design Editor. To access the metadata for a field:
- Open the campaign in the Design Editor.
- Select the field you want to configure: either click it directly on the canvas or choose it from the field dropdown in the Form tab.
- Scroll down to the Field Metadata section and toggle it on.

- Add your metadata key and value there.
| Key | What it does |
|---|---|
enable_when |
Activates a field when the condition is met. If the condition is not met, the field stays grayed out and non-interactive. |
show_when |
Shows a field when the condition is met. If the condition is not met, the field stays hidden. |
Basic syntax
enable_when : fieldName=fieldValue show_when : fieldName=fieldValue
To match multiple values, use a comma-separated list:
enable_when : fieldName=value1,value2,value3 show_when : fieldName=value1,value2,value3
To trigger when a condition is not met, use the negation operator (!=):
enable_when : fieldName!=value1,value2,value3
Example: show a text field based on a dropdown selection
Goal: enable a free-text field (custom_2) only when a user picks NZ, CA, or DE from a country dropdown (custom_1).
Add this metadata to the custom_2 field in the Design Editor:
enable_when : custom_1=NZ,CA,DE
- Default state: the text field is grayed out when the user has not selected NZ, CA, or DE.

- After selection: the text field becomes active when the user picks NZ, CA, or DE.

To flip the logic and enable the field for every country except NZ, CA, and DE, use:
enable_when : custom_1!=NZ,CA,DE
The show_when key works the same way for images and text elements, not just input fields.
Using regular expressions
You can use a regular expression instead of a static value. Wrap the pattern in forward slashes (/ /) so the extension treats it as a regex:
show_when : phone=/^.+$/
This example shows a field whenever the phone field contains any value.

Important: V12 regex update (released May 20, 2026): Version 12 includes a fix for how regex conditions were evaluated. In earlier versions, the extension was incorrectly stripping characters from the field value before running the regex test, which could cause some patterns to behave unexpectedly.
If you are upgrading from an earlier version to V12: check any campaign on the account that uses a regex-based
show_whenorenable_whenrule (any metadata value wrapped in/ /) before upgrading. If none exist, it is safe to upgrade with no action needed. If a regex rule stops working as expected after the upgrade, review the pattern, as it may have been relying on the old behavior and may need to be adjusted.
Debug logging
By default, the extension runs silently and only surfaces warnings and errors in the QA notification panel. To turn on verbose logging for a specific campaign:
- Open the campaign in the Design Editor.
- Click Settings, then select Campaign Settings.
- Scroll down to the Campaign Metadata tab.
- Add the following key and value:
| Key | Value | Level |
|---|---|---|
show_hide_debug_logs |
true |
Campaign |
To disable debug logging, remove the key or set its value to anything other than true.
What debug logging shows
With debug logging on, you will see in the browser console:
- Each rule evaluated: target field, source field, and current value
- Condition result (whether the condition was met, the operator used)
- Action taken (showing, hiding, enabling, or disabling)
- Event handler triggers (dropdown changes, checkbox changes, button clicks, text input changes)
The following always appear in the QA panel regardless of the debug setting:
- Warnings: missing metadata config, wrapper element not found, field not found in the campaign
- Errors: rule parse failures, JavaScript exceptions
Note: Use debug logging in development or QA only. In production, the QA panel stays quiet unless something is actually misconfigured.
Want to get more from Digioh?
Get the playbooks leading brands use to convert more visitors into revenue.
Browse the Playbooks ?Platform Tour
See what else you can do with Digioh in our self-guided platform tour.
Take the Tour ?


