Logic to dynamically set a form var on an LP studio page?
Here's a Q for you:
We have a series of LPs that are unique templates only used for these stand-alone campaigns, so we created them in the LP editor as opposed to creating templates. They're for digital ads, so there's a many-to-one relationship with the places pointing to the ads, the products the ads reference and the ads (many products to one ad).
We need to populate the product interest at the time of record creation because we have to. Don't ask. Can't do it in a workflow later, it causes problems.
The only way we can see as being able to do this is to pass the product name in a URL parameter. Problem is that the product names were developed with spaces and slashes and other non-HTML friendly characters and there's no way to decode those prior to plopping in the form.
Is there a way to utilize the Forms 2.0 embedded features, such as form.vals on a LP created page? If I can use JS I could decode the param prior to setting the hidden field to that value. But I'm not sure if that'll work or not since I'm not doing a full-on embed for the form.
Any suggestions?