Populating backend section via frontend form
This is an open discussion with 10 replies, filed under Troubleshooting.
Search
Have you added the Event 'New Venue' to the page in Blueprints > Pages > Page Settings
Yep, it seems to be selected fine in Events muthahubbard
Try changing your form action to action="?debug"
You can have a look if the event is getting fired and if a error is occurring.
Good call, it came back with this:
<new-venue result="error"> <filter name="permission" status="passed" /> <message>Entry encountered errors when saving.</message> <venue-name label="Venue Name" type="missing" message="'Venue Name' is a required field." /> <post-values /> </new-venue>
And you've a name into the required "Venue Name" field? ;-)
Did I put a name in the required 'Venue Name' Field? Yep :-)
All sorted now, thanks to those who helped :-)
How did you fix it, just for reference?
Hey designermonkey, the problem was in the input names.. I had to use the string [event name][fields][field name] in order for it to work, see below..
Originally:
<input name="fields[venue-name]" type="text" />
Changed to:
<input name="new-venue[fields][venue-name]" type="text" />
Hope that helps
Cool, it's good to see answers on the forum for other who may be struggling the same way.
Thanks for posting!
Create an account or sign in to comment.
Hi, can anybody help please?
I currently have a section called 'Venues' with two fields currently set up inside called 'Venue Name' and 'Venue Capacity', I then have a standard form setup front end, I’m trying to make it so when someone fills out the form on the front end of the site the section on the backend will populate,
This is my current form setup:
Any ideas? Cheers