[Plugin: Contact Form 7] Enter form data to trigger scripts on a page
-
How can I use a CF7 form to insert variables into a few scripts, click submit, then dynamically see the new results based on what I just entered?
Can I have these results route through custom fields that then insert the necessary data into the code, currently written like below?
Right now I have these scripts on private pages that create unique sets of results based on each page’s custom fields. But I’d rather do it dynamically with form boxes than have to create a unique page for each set of results I need.
‘<script src=”https://example.com/script1.js”>
{“customer”:”[content field=”customer”]”,”date”:”[content field=”date”]”}
</script><script src=”https://example.com/script2.js”>
{“customer”:”[content field=”customer”]”,”date”:”[content field=”date”]”}
</script><script src=”https://example.com/script3.js”>
{“customer”:”[content field=”customer”]”,”date”:”[content field=”date”]”}
</script>’
- The topic ‘[Plugin: Contact Form 7] Enter form data to trigger scripts on a page’ is closed to new replies.