Assign Click Actions
Use this page to define what happens when a user clicks a web widget element.
This page focuses on behavior. If you are still building the widget layout, start with Customize Components. If you need help choosing the right element first, see Widget Elements Reference.
Quick workflow

Click 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 when the widget should request browser notification permission directly from the user.
This is useful during onboarding, subscription prompts, or well-timed opt-in requests.
How it works:
The user clicks the component.
The browser shows the native notification permission pop-up.
The user’s allow or deny response 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.


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.

Validations
Validations help you prevent bad or incomplete input before an action runs.

Example
If a field must not be empty, set the rule to Not Empty and write an error message such as Please fill in.

Validation rules
Available rules include Not Empty, String Length, Number, Percentage, and Regex.

Email validation
Widgets support email validation with custom error messages such as Please enter a valid email address.
If the value is invalid and the user clicks submit, the error appears immediately and the action is blocked.

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.
Check Form Validations Before Performing This Action
When enabled, the widget checks validations first. If validation passes, the action runs. If validation fails, the action is blocked and the user sees the related error message.

Manage App
Use Manage App when the action should be handled by the app itself. This is commonly needed for app-level deep link behavior.

Action Conditions
Use Action Conditions to control when a click action should run.
How it works:
Choose the identifier to evaluate.
Select the condition.
Enter the expected value.
Run the action only when the condition is matched.


Example scenario: rating flow
This example creates a simple feedback flow with conditions.
Goal
Ask for a 5-star rating. Users who rate 4-5 go to a Thank You page. Users who rate 1-3 go to a Feedback page.
Step 1: Add the rating element and identifiers
Design the widget first. Add the rating element and the button users will click after rating.
Then assign a clear identifier to the rating element, such as rating.

Identifiers are usually shown at the top-right of the selected component. Replace random defaults with clear names before you start action setup.

Step 2: Create the views
Add the extra views needed for the flow:
View 2: Feedback
View 3: Thank You


Step 3: Add conditional actions to the button
Add two Go to View actions to the same button.
First action:
choose Go to View
select View 2
add the condition
rating <= 3

Second action:
click + Add Action
choose Go to View
select View 3
add the condition
rating >= 4

You can add more actions later if the flow needs data send, redirect, or event trigger steps.

After testing the logic, click Save Widget and Return.
Last updated
Was this helpful?