Configure widget actions and validation
Configure what happens when users click a widget element.
Use actions to navigate users, collect data, update profiles, or trigger events. Use validation to block incomplete or invalid form submissions.
Build the structure first in Design widget layout. Choose elements in Widget elements reference.
Before you start
Click actions are available for Buttons and Images. Set identifiers for every element used in mappings or conditions.
Configure an action
Select a button or image.
Click the ⚡ lightning icon in the toolbar.
Choose an action.
Add conditions or validation when needed.
Preview every path before saving.

Choose an action
Use the action that matches the outcome you need:
User Update: save a profile attribute or form response.
Redirect to URL: open a web page.
Go to View: move to another screen within the widget.
Send Data: send values to an endpoint.
Close Widget: dismiss the current widget.
Open Widget: launch another saved widget.
Get Web Push Permission: request browser notification permission.
Fire Event: record a custom event.
Android Background Location Permission: open Android location permission settings.
Deep Link: open an in-app destination.
Manage App: let your app handle the action result.
Action types
User Update
Use User Update when a click should update profile data or user properties.
This is useful for saving form responses, updating user fields, or writing back preference data.
How to set it up:
Select the button or image.
Choose User Update.
Pick the field you want to update.
Map the value from a widget component if needed.
Matching components with attributes
To access subcategories of the target profile attribute:
Windows:
CTRL + ALT + 7Mac:
FN + Option + 7


Example
To update a user’s email through a button:
Assign an identifier to the button.
Select User Update.
Open the subcategory and choose the update method.
Select Content if the value comes from another widget component.
Match the content with the component you want to use, such as
emailattributebutton.


Redirect to URL
Use Redirect to URL when a click should open a web page.
Best for external websites, landing pages, product pages, and campaign detail pages.
How to set it up:
Enter the destination URL.
Add a condition if the redirect should run only in a specific case.

Go to View
Use Go to View to move users to another screen inside the same widget.
This is the main action for multi-step flows such as rating → thank you or form → success.
How to set it up:
Choose Go to View.
Select the target view.
Add Action Conditions if the target should depend on user input.


Send Data
Use Send Data when the click should send form or interaction data to an endpoint.
This is useful for custom data collection and server-side workflows.
How to set it up:
Define the data or parameters to send.
Enter the endpoint URL.
Add conditions if the send action should be limited.

Close Widget
Use Close Widget when the interaction should simply dismiss the widget.
This works well for actions such as Dismiss, Maybe later, or No thanks.

Open Widget
Use Open Widget when one widget should launch another widget.
This is useful for chained flows such as summary widget → detailed widget.
How to set it up:
Choose Open Widget.
Select the target widget.
Make sure the target widget already exists.

Get Web Push Permission
Use Get Web Push Permission to request browser notification permission from the user.
This action supports onboarding, subscription prompts, and well-timed opt-in requests.

When users click the assigned element:
The browser displays its native permission prompt.
Users choose whether to allow notifications.
Their decision is reflected in Netmera automatically.


Fire Event
Use Fire Event when a click should trigger a custom event inside your app or tracking setup.
This is useful when another workflow, report, or integration depends on the interaction.
How to set it up:
Create the event first in Create Custom Events.
Assign Fire Event to the button or image.
Select the event from the list.
Matching widget components with events
To access subcategories:
Windows:
CTRL + ALT + 7Mac:
FN + Option + 7


Example
To fire an event from an image click:
Assign an identifier to the image.
Select Fire Event.
Open the subcategory and choose the method.
Select Content if the mapping comes from a widget component.
Match the event with the right component, such as pairing
LikeEventwith the image identifier.


Android Background Location Permission
Use this action when the widget should guide Android users to allow or deny background location access.


How to set it up:
Add buttons such as Allow Permission and Deny Permission.
Assign the matching background location action to each button.
After the click, the user is directed to the Android Settings screen.
Deep Link
Use Deep Link when the click should open a specific destination inside the app.
This is useful for product pages, article detail pages, feature screens, or campaign destinations.

Manage App
Use Manage App when the app should handle the action itself.
This action is commonly used for app-level deep link behavior.

Validations
Validations prevent incomplete or invalid input before an action runs.
Set an input type first. Then add the rules and error messages users need.

Input types
The input type controls how users enter a value and which checks apply automatically. Choose the type that matches the expected data, then add validation rules for any additional requirements.
Text
Supports required, length, and regex rules.
Names, labels, and formatted text values.
Number
Supports numeric ranges and percentage constraints.
Quantities, ages, and scores.
Date
Shows DD/MM/YYYY and a calendar picker. Blocks invalid dates and formats.
Registrations, reservations, and appointments.
Checks standard email formatting as users type. Blocks submission until corrected.
Sign-up and contact forms.
Phone
Shows a telephone keyboard on mobile. It does not enforce a format.
Phone number collection. Use Regex for country codes or digit counts.
Password
Masks entered characters. It does not enforce complexity rules.
Password creation or confirmation. Use Regex for requirements.
URL
Checks standard URL formatting. Blocks submission for invalid values.
Websites, deep links, and other URL values.

Validation rules
Validation rules define the specific condition a field value must meet before the form can be submitted. Each rule requires an error message that is shown to the user when the condition is not met.

Not Empty
Ensures the field is not left blank. Use for any required field.
String Length
Enforces a minimum and/or maximum character count on text input.
Number
Validates that the entered value falls within a defined numeric range.
Percentage
Validates that the value is a valid percentage (0–100).
Regex
Validates the value against a custom regular expression pattern. Use for formats not covered by built-in types, such as national ID numbers, postal codes, or phone number patterns.
Valid Date
Ensures the entered date is a real, calendar-valid date. Blocks submission if the value is an impossible date such as 31/02/2025.
Date - Minimum
Requires the entered date to be on or after a specified date. Use for scenarios where past dates are not acceptable, such as future appointment scheduling.
Date - Maximum
Requires the entered date to be on or before a specified date. Use for scenarios where future dates are not acceptable, such as birth date fields.
Validates that the entered value matches standard email address format. Blocks submission if the value is missing an @ sign or domain.
Run validation before the action
Enable Check Form Validations Before Performing This Action on the form action.
The widget checks validation first. Passing values run the action. Failed values show the related error and block the action.
Important step
Do not forget Check Form Validations Before Performing This Action. This ensures that all validation rules run before the click action is executed.

Action Conditions
Use Action Conditions to run an action only for a matching user choice or value. Each condition evaluates an element identifier against an expected value.
Choose the identifier to evaluate.
Select the condition.
Enter the expected value.
Save the action.


Example: route users by rating
This flow asks users for a five-star rating. Ratings of 1 to 3 open Feedback. Ratings of 4 to 5 open Thank You.
Build the views
Add a rating element and a submit button to the first view.
Set the rating element identifier to
rating.Add View 2 for Feedback.
Add View 3 for Thank You.
Identifiers appear at the top-right of the selected element. Replace generated names before configuring actions.




Configure the outcomes
Add two Go to View actions to the submit button:
Go to View
View 2: Feedback
rating <= 3
Go to View
View 3: Thank You
rating >= 4
Select + Add Action before configuring the second outcome. Add further actions when the flow also sends data, redirects users, or fires an event.



Preview both rating paths. Then click Save Widget and Return.
Last updated
Was this helpful?