# Show or Hide your form based on API parameters

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
[https://collect.chat/help/article/1065-publish-the-chatbot] before testing.