I have a project where I need to be able to generate forms based on a record in the DB with a fields list. I have three requirements that I'm kinda stuck on what to do.
- I want the form to only be accessible on certain external websites.
- I want the URL to only render the form. Currently the admin end is rendering a header, footer and sidebar and I need to strip all those components out to be able to use the form in an iframe
- I don't know the best way to store the form information, my initial thought is to store the information in a new DB table since when creating a form the user needs to upload a form image, add disclaimer text, and then choose to add optional form fields.
I don't have much code to show since all I have right now is the form to create the external form. If I need to explain my workflow more feel free to ask questions, I appreciate the help!