ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker - not submitting custom fields

August 02, 2012 12:13pm

Subscribe [2]
  • #1 / Aug 02, 2012 12:13pm

    Tim Print

    104 posts

    EE 2.5.2
    Safecracker 2.1
    Running locally on MAMP
    index.php removed using officially supported method http://ellislab.com/expressionengine/user-guide/general/remove_index.php.html
    I’m logged in as Superadmin.
    There are no required fields in the field group.
    When I submit the safecracker form a new entry is created with the Title given but the custom field doesn’t work. It is always blank in the created entry.

    I’ve stripped the form back as much as I can to try and find the issue.

    {exp:safecracker
      channel="member_vehicles"
      return="members/vehicles"
     }
    
      <fieldset class="f-section">
     
       <div class="f-group">
        <label for="title">Title *</label>
        <input type="text" name="title" id="title" value="{title}">
       </div>
    
       <div class="f-group">
        <label for="year">Year</label>
        <input type="text" id="year" name="year" value="{cf_member_vehicle_year}">
       </div>
      
      </fieldset>
      
      <div class="f-submit">
      <input class="btn btn-primary" type="submit" value="Submit" />
      </div>
    
     {/exp:safecracker}

    Any ideas what I can try to troubleshoot this?

  • #2 / Aug 02, 2012 12:39pm

    Royama Design

    34 posts

    It looks like you are not using the correct custom field tag syntax. Try this:

    {field:cf_member_vehicle_year}
  • #3 / Aug 02, 2012 6:37pm

    Tim Print

    104 posts

    Excellent. That’s working perfectly thanks.

  • #4 / Aug 02, 2012 10:47pm

    Lisa Wess

    20502 posts

    Thank you again, Sam, for helping out!

    Tim, I’m glad that you got this working.  Please let us know if you need any further assistance!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases