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 edits not saving

July 14, 2011 2:46pm

Subscribe [2]
  • #1 / Jul 14, 2011 2:46pm

    ethetree

    4 posts

    I have a safecracker form, which submits basic data to a channel. When I submit a new form all of the data gets saved fine but when I edit the form only the title and categories are saving, none of the custom field edits are saved. No errors, the form looks like it is saving but just doesn’t update the custom field info. Any help greatly appreciated.

    EE Version v2.1.3
    SC Version 2.0.0

    
    									
  • #2 / Jul 15, 2011 4:13am

    John Henry Donovan

    12339 posts

    ethetree,

    Steps I recommend are upgrading EE to latest release which is EE2.2.1 and then reducing your form to th e basics like so. I also moved your success conditional outside of form

    
    
    

    Let us know know you get on

  • #3 / Jul 15, 2011 10:09am

    ethetree

    4 posts

    The problem actually turned out to be that I had a custom field in the channel called categories but I was not using that field on the form but rather the actual channel categories. When I removed the categories custom field the form edits started saving. Maybe all custom fields need to be present on the form even if you are not changing anything?

  • #4 / Jul 18, 2011 12:23pm

    Kevin Smith

    4784 posts

    Hmm… that shouldn’t be the case. The way SafeCracker is supposed to work, it should just ignore fields that are in the channel but not present in the form. Could you elaborate for me a bit? What was the name of the Channel Field you used for categories? Did you have any reference to it in the form, or was the form referencing the Channel Categories? In the steps you took that got the form working, I understand that you deleted the Channel Field meant for categories. Did you also have to modify the form at all?

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

ExpressionEngine News!

#eecms, #events, #releases