Forum
Form app questions
Hi
Long time Perch user, first time Form app user... and I have a few questions;
Is it correct that you need to submit a test entry through the form before it shows in the admin allowing you to change the settings of the form?
I'm using Runway and have a master (offers.php) that seasonal offer pages will be created from... each requiring at times a different form template. I've noticed that when the form is submitted and shows in the admin, the form id/name is taken from the master page name rather than the name of the page you've created... meaning if I create 10 pages from this master, the forms will all have the same name. Is this correct, or am I doing something wrong?
Thanks Wayne
Yes, that's how it works. The same as creating a new region on the page.
That's correct - it's the same form on multiple pages.
Thanks Drew
Missed the bit right at the top of the Form Options page where I can rename it...
Ah, I see what you mean about all pages from a master using the same form. I renamed the form after the creating the first page and when I added the second page and submitted the form it goes in the same form. Is there any other way of trying to achieve separate forms using the same master?
Forms are keyed on the ID, so if they have the same ID they're the same form.
What are you using the forms for?
They will be offer pages for a cosmetic clinic, so for example, when valentines day, mothers day, fathers day etc., are approaching, they would like to create a page from the offers master, but select from a list of form templates to suit the data they would require for that offer (certain offers may require an additional field or two).
It sounds like you'd either be able to use a content region or a page attribute to let the editor pick which form template to use. Then use that value for the
template
option in yourperch_form()
call.Thanks Drew. I'll check that out...
Using the content region option, its easy to specify which form to use on the page, but on testing a different form it still ends up in the same form in the admin.
These are the steps I've done;
In admin the entry is in the original Offers form, so both entries are in the same form.
I'm guessing from your original response and going through these steps, its not going to be possible to end up with a Christmas form and Valentines form in the admin with their own entries?
Do the forms have different IDs?
Ah... when I saw the form name in the admin, I thought it was taking that from the page. I've now changed the IDs in the template and they are separate in the admin.
Thanks