I have been building a form builder app where users will have the ability to build a booking form for their business. However, I also want the users to be able to take the form and then embed it on their own websites in order to use it for their business.
I want the users to be able generate the form and then have it produce some embed code at the end so they can take that embed code to their website to be able to embed the form on their website.
Not sure if this can be solved with a plugin or if this requires something completely different. Any help would be greatly appreciated.
You don’t need a plugin, but this kind of dev is more complicated. It’s start from the DB structure to have enough flexibility to let user create fields. Basically, you will have a DB “forms” another one “question” and a final one for “response”.
Question will have info like “forms” (link to form DB), type of question, question, mandatory … Response DB will have fields for each type of possible answer (text, date, number, file fields…) and a link to question DB.
On frontend you will have a lot to do to display the question of the form according to the question type in a RG. Same for the view of responses after.
For the embed code, this is not hard. You will have a page to display the form. Let’s say it’s www.yourapp.com/form … Each form have it’s own unique ID. So the embed url will be www.yourapp.com/form/unique_id
Provide an embed code to your user for each form like