By default we recognize users when coming back to our pages or widgets. Instead of having to fill out information such as their name, email address, and ZIP code again, they'll be welcomed back and can take action on the form more quickly.
However, in some instances you may want to show a blank form to a user no matter what. For example, if you are embedding a form in your websites header to serve as a sign up form, you may want to always show the email and ZIP code boxes, even if the user is recognized on our system.
To force a widget to show the blank form fields instead of recognizing users, add the clear_id=true
URL argument to your widget code.
For example, normal widget code looks like this:
<link href='https://actionnetwork.org/css/style-embed-v3.css' rel='stylesheet' type='text/css' /><script src='https://actionnetwork.org/widgets/v3/letter/give-shelters-puppy-pops?format=js&source=widget'></script><div id='can-letter-area-give-shelters-puppy-pops' style='width: 100%'><!-- this div is the target for our HTML insertion --></div>
To force blank fields, you'd use this instead:
<link href='https://actionnetwork.org/css/style-embed-v3.css' rel='stylesheet' type='text/css' /><script src='https://actionnetwork.org/widgets/v3/letter/give-shelters-puppy-pops?format=js&source=widget&clear_id=true'></script><div id='can-letter-area-give-shelters-puppy-pops' style='width: 100%'><!-- this div is the target for our HTML insertion --></div>
To force a page to do the same, add the clear_id=true
URL argument to your link. So instead of telling your activists to visit:
http://actionnetwork.org/petition/here-is-my-petition
You would tell them to visit:
http://actionnetwork.org/petition/here-is-my-petition?clear_id=true
Three important things to keep in mind:
First, using this technique does not generally work on fully logged in activists, such as you or other administrators. Rather, it works on activists who are only recognized, which should generally include activists on your email list.
Second, if you want to use these links in our mass mailer, you'll want to use the no_rewrite clip in addition to this URL argument, to prevent us from appending identification to the URL identifying the user we're sending the email to and recognizing them when they click. So your link would look like:
http://actionnetwork.org/petition/here-is-my-petition?clear_id=true&no_rewrite=true
Finally, this will cause all widgets on a page to not recognize users, so if you're using a widget with this technique along with another one on the same page (say, a signup form in the sidebar and a donate widget for the main content), both widgets will not recognize users, potentially affecting how many people end up taking action.