Search

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:

        <form method="post" action="" enctype="multipart/form-data">
  <input name="MAX_FILE_SIZE" type="hidden" value="5242880" />
  <label>Venue Name * (required)
    <input name="fields[venue-name]" type="text" />
  </label>
  <label>Venue Capacity
    <input name="fields[venue-capacity]" type="text" />
  </label>
  <input name="action[new-venue]" type="submit" value="Submit" />
</form>

Any ideas? Cheers

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details