Show or Hide your form based on API parameters

Markdown

View as Markdown

URL parameters or API parameters are additional strings present in the URL that gives additional information to the browser. You can choose to show or hide the form when a particular API parameter or a set of such parameters are present in the URL.

Please go to Settings > Targeting > Visitor targeting rules. Click on the + Add rule button under Hide for. Select API Parameters from the dropdown list.

In the above example, we added a rule under Hide for. So, if a user visited your website and has the following URL:

yourwebsite.com/link?uid=anonymous&category=inactive

then the form will be hidden for such a user. If only one of the parameters are present in the URL, then the form will be visible to the user.

The same rule can be added under Show for as well.

Note

This setting is only available for the form when it is in widget mode. It is not applicable to embedded or full-page forms.

Tip

Don't forget to publish your changes before testing.


Was this article helpful?

Still need help?

Contact us