It is possible to add fields to your Google Webform integration into your CRM to pass information without the field showing in the front-end of your webform. This can allow you to pass information such as the URL that a webform was submitted on. This can be very helpful in capturing info specific to a webform, or to differentiate webforms on different parts of your website.
First, you'll need to create your webform and connect it to your CRM. See these instructions to get that set.
Once you have your webform set, go to the "Script Editor" of your webform.
Here, you'll be adding a small section of code to the code.gs file.
Right after:
value: itemResponse.getResponse() }); }
Copy and paste the following snippet:
/* Hidden Field Attributes */
ApptivoOBj.attributes.push({
labelName: "Team", /* Replace with field name in your CRM */
value: "Team Gonzales" /* Replace value you'd like entered */
});
Replace the entry between the "" next to "labelName" with the field that you want to submit. In the example above, replace "Team" with whatever field you want to use.
Next, in the "" after "value:", enter the value you want to have submit into your CRM each time a submission is made. If you are using a dropdown field, make sure the value you enter matches the value in your field options in your CRM exactly.
To add multiple fields, copy and paste that snippet again just below the first. You can add as many as you'd like.
Comments
0 comments
Please sign in to leave a comment.