Answer to the above question:
-
First create Form 1 and Form 2, containing all fields you need. In my example I will show how to send email value from Form1 to Form2, so I will make sure to add Email field in both forms.
-
Add an extra hidden field: formid to the Form1 (from where you send the results). Add label of form id as: “formid” (it is recommended not to use spaces)
Form 1 is shown on image below:
-
After you add fields to Form1, open it again and go to Attributes > Field HTML name and keep note of all field names which you want to send to second form. E.g. I want to send only email to Form2, and Field HTML name for Email field from where I send the value (i.e. Form1) is: email_1 (see image 2)
-
While we are still on Form1:
Go to Actions > Post results to another form
-
Give it a name
-
Post URL: https://example.domain.com/form/submit?formId=X (here should be the ID of the form you are sending results to. In our case we send results to Form 2 which ID is 7, so the link will look like his: https://myexample.mydomain.com/form/submit?formId=7
-
Now under Override field names for the receiving form section, it’s time to add field HTML name so that Mautic knows where to send records from Form1. In Form2 ( I have also added a field Email, and that is where the email from Form 1 will go). In Form 2 the Field HTML name of email is email_2 , therefore in this action window I will add mauticform[email_2]. This means value of email_1 will go to field email_2, as shown on image below:
-
Do not forget to send the form id also by adding mauticform[formid] under formid field.
-
Save the form! We are done with Form1.
- On Form2 make sure you have the email field (because that is where email will go to) and check whether it’s field HTML name is email_2. See image below:
Done!
Now place your forms on landing pages and give it a try!