You added the same form on multiple pages and you want to know on which page contacts have submitted the form ?
You can get this info with Webmecanik Automation.
To do so:
- Go into the edition of a form.
- Add a hidden field.
- We call it "ref" but you can call as you want.
- Just fill the name of the field, that's it.
- Add a new HTML area field.
- We call it hidden (feel free to call as you want). This field will also be hidden.
- In the properties tab, copy and paste this script:
<script> var formName = 'testfaq'; if (typeof MauticFormCallback == 'undefined') {var MauticFormCallback = {};} MauticFormCallback[formName] = {onValidateStart: function () {document.getElementById('mauticform_input_testfaq_ref').value = document.URL; }, }; </script>
- Modify "testfaq" by the name of your form.
- Go to the attributes tab and add this CSS style: style="display:none;"
- This CSS style will allow to hid the name and the content of the html field.
- Save the form.
When contacts will submit form, the URL of the page where the form is integrated will be filled out in the ref field.
You can also integrate this URL in the form results by adding the form action "send form results".
Comments
0 comments
Please sign in to leave a comment.