On my blog there is a lead magnet (button or animation) which, when clicked, should display a pop-up modal (form) from an external source (JS from Convertkit). However this JS varies for each blog post. Therefore for each blog post I added a field with the specific link, which I was hoping to load using the “add field” function within an HTML-Embed element.
I tried the following methods:
alternative 1) the “add field” pulls the entire script into the form as a variable (
e.g. < script > … < /script >. For example:
alternative 2) the “add field” only pulls the URL of the external JS as a variable into the code, while the rest is hard-coded. For example:
Unfortunately this neither options seem to work, as it does not seem to be recognized as JS by the browsers. What am I missing here?