Dynamically create a new Gravity Form when another form is submitted

Viewed 25

I've been stuck on this challenge for a couple of weeks now so thought to reach for some help.

What I'm trying to achieve:

When a user submits FORM A, then automatically create FORM B and pre-fill the content specified in FORM A. The pre-fill part is not the problem, but CREATING the form is.

I'm using FORM A to allow the user to define 'Rooms' and their pricing as well as a Location Name. I want to then generate a NEW gravity form with the 'Location Name' as the Form Name and pre-fill a set of fields with the data provided by the user in Form A.

Example:

Form A "Configure Location & Rooms"
Location Name: Hotel
Room 1 Name: Pool Room
Room 2 Name: Sunset Room
Room 1 Price: $20
Room 2 Price: $30
Submit

Creates Form B <-- How do I get this to trigger. ie. When user submits FORM A, create new Gravity Form.

Form B "Hotel"
Location Name: Hotel -pre-filled from form A
Pool Room: (number field)
Sunset Room: (number field)
Pool Room Price: $20 -pre-filled from form A
Sunset Room Price: $30 -pre-filled from form A
Pool Room Total: (number field x $20)
Sunset Room Total: (number field x $30)

I hope this explanation is clear enough, I really appreciate any assistance.

0 Answers
Related