EllisLab text mark
Advanced Search
Safecracker Autosave?
Posted: 28 March 2012 01:53 AM
Joined: 2010-02-15
15 posts


How can I autosave form / channel entries made via the safecracker module?

this doesn’t work:

$config['autosave_interval_seconds'] = 10;

and to autosave via a click event in JS/ jQuery fails since there are required fields.

$('a.top').click(function(fn) {
  dataString = $('#publishForm').serialize();
   type: "POST",
   url: $('#publishForm').attr('action') + '/json',
   data: dataString,
   dataType: "json",
   success: function(data) {
    if (data.success) {
      alert('successfully saved (ID: '+data.entry_id+')')
                } else {
     var err_str = JSON.stringify(data.field_errors, null, 2);
                 alert('Saving no successfull, error '+ err_str);
   error: function(jqXHR, textStatus, errorThrown) {
    alert('Error: ' + textStatus);

Can I anyhow disable temporarely the reuired field in safecracker to save this Entry as it is?

Posted: 29 March 2012 10:14 AM   [ # 1 ]
Joined: 2011-11-25
7174 posts

Hello Komtur,

Thank you for posting your question here on the ExpressionEngine forums.

This sounds like a great idea. If you can get this to work as an Add-On that would be awesome.

I am going to move this over to Development and Programming for you. I think the collaboration over this idea from the community of Devs there will be your best bet.

Have a great rest of the week.



ExpressionEngine Support

Posted: 05 June 2012 08:36 AM   [ # 2 ]
Joined: 2010-04-27
58 posts

any updates on this? i’d be interested.


Kees™ Internetbureau

Located in Amsterdam, Leiden, Den Haag & Rotterdamin the Netherlands.
We love working with ExpressionEngine.

Posted: 08 February 2013 11:44 AM   [ # 3 ]
Joined: 2008-02-20
95 posts

hi there, any news about this? Did you had the chance to develop the addon?