Gravity Forms Invitaiton Codes offers a way to have visitors to your website fill out a form from Gravity Forms on your website, but only enabling them to completely submit the form by entering in an invitation code that you sent to them. The invitation code is verified on the backend from codes that you entered in manually or uploaded via CSV file.
- Verifies invitation code automatically
- Invitation Code Tracking by Code Name
- Register by Invitation Code Only
- Form Submission by Code Verification
- Upload Codes via CSV
- Add codes manually
- Add codes via line entry
- View Codes Used by Registered User
- View Number of Times a Code is Used
- Set Number of Times a Code can be Used
- Set Expiration Date for the Code
- Add invite code field right from the Gravity Forms Form Builder
Codes can be entered in the admin section of WordPress. The Invitaiton Codes section is under the Gravity Forms menu and is labeled "Invitation Codes". Codes can be used with or without registration forms.
Click on "Invitation Codes" and the first section has a form to enter codes.
Invitation Code - Can be any alphanumeric set of characters, no limits on length
Inivitaion Code Name - Use this to identify your codes later (for example... "Postcard Mailing Invite", "ABC Website Referral", etc...
Amount of Invitation Codes - Enter the amount of times this specific code can be used before it deactivates, use -1 for unlimited usage
Expiration Date - Choose a date you want the code to expire, if no date is chosen, the code will not expire
Uploading codes is very simple, there are only 3 fields that are required in the header of the CSV.
Here is a sample CSV file for you to edit -> Invitation Codes Sample CSV
Choose an expiration date for ALL of the uploaded codes to expire, if no date is chosen then they will not expire.
You can add codes via entry line. This means you can add 1 code per line break all at once as shown below.
Choose the amount of times ALL codes enterd per line can be used
Choose a date for ALL the codes entered per line to expire, if no date is chosen they will not expire
You can view who used codes to register on your site at the "Used Codes" section under the "Forms" menu of Gravity Forms.
Click "Used Codes" and you can view them right away. Entries will ONLY show here if a code was used to register. Codes can be used with or without registration.
Using the shortcode [invitation_code_generator] you can generate unique one-time use codes. This Shortcode will display a code once the page the shortcode is used on is visited. You can use the shortcode in the confirmation section of the Gravity Form or ona page by itself. Below is a screenshot, what the plugin generates is outlined in red...The code is wrapped in a class of “gen_inv_code” so it can be styled!
Using the shortcode [invitation_code_name code="{The Label of Invitation Code Field Goes Here}"] you can display the Code Name of the invitation code that was just verified. This is really good if you are using customer names as the Invitation Code Name. Inside of the brackets after "code=", the label of the Invitation Code from your form must go here. For example, if your Invitation Code field on your form is labeled "Special Offer Code", then your shortcode on the confirmation page would be [invitation_code_name code="{Special Offer Code}"].This Shortcode will display Code Name on any confirmation page of your choice. It can ONLY be used immediately after a code is verified on a confirmation page, not the built in confirmation message in Gravity Forms. You must use the shortcode on a page. Below are screenshots... see the important spots in the backend and front-end outlined in red.
The backend where you choose your Code and Code Name
The Edit Page area where you enter the shortcode
The front-end where the Code Name is generated after successful for submission
The CPT Integration Custom Field allows users to submit data that is then used to populate a custom field value for a post. To assign a custom field the "CPT Integration" box must be checked. Yo can choose to map to an existing field from the dropdown or create a new field. Visit Gravity Forms Help for Post Custom Field for more info on this function.