To pass information from a query parameter in a URL through your lightbox as a custom field, follow these steps.
First, set up a URL using a query parameter. Here, we’re using https://help.digioh.com/?testparam=test
On the Boxes page in Digioh, open the Dynamic settings for the lightbox you want to work with.
Create a new dynamic item.
Set the source as URL Param and enter the URL Param name. In the URL mentioned in Step 1, the URL Param is testparam. Set the operator to “contains” and decide whether you want it to be case sensitive. Set Source Value Matches to Anything, and set the target as a custom field. In this case, we’re using Custom 1. Set Target Fill to Source Value, and enter some fallback text for if the query param you’re targeting isn’t present. When you’re done, the page will look like this:
Save the dynamic item. On the Dynamic page, click Publish.
Go to a page on your site with a URL containing the query parameter you targeted with the dynamic item. Enter a submission in your lightbox.
After entering a test submission, head to Analytics > Submissions > Advanced to see the value set in the query parameter in the Custom 1 field.
That’s all there is to it! Any value set for the query parameter in the URL will carry over to Custom Field 1 when a visitor submits info through the lightbox.
If you have any questions, or if you’d like help setting this up, send us an email and we’ll be glad to help!