can you create a button to save then go back to edit

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered

Below is the code for my working save button, I just need to add the edit

"<a id='saveButton' class='Vibrant Success' onclick='DoSaveAdd()' href='#'>Schedule Multiple Orders</a>"

Photo of Shontay

Shontay

  • 490 Points 250 badge 2x thumb

Posted 3 years ago

  • 0
  • 1
See this post here.

I think that the Answer by Benjiamin and the link to Dan Diebolt app are the same.

https://quickbase-community.intuit.com/questions/1044131-button-to-save-and-stay-in-editing-record-form?jump_to=comment_2480248
Save and Continue editing

"<a class='Vibrant Success' onclick=$('#RedirectURL').val(document.location.href.replace(/&rl=[a-z0-9]*/,''));$('[name=rl]').val('');$('#saveButton').trigger('click'); href='#'>Save & Edit</a>"
Photo of Ryan Blackwood

Ryan Blackwood

  • 154 Points 100 badge 2x thumb
This does not work for new forms, only forms that have already been saved.  When using this on a new form, it saves that form and creates a new form.  Has anyone found a way to save the form and continue editing that same form?
The native solution is this:

There is a setting in form properties to enable that feature.

It’s called save and keep working.
Photo of Ryan Blackwood

Ryan Blackwood

  • 154 Points 100 badge 2x thumb
Thanks for the quick response.  Your answer on my other post was what I was looking for.  Apparently one of the updates messed up Dan's old code, so it no longer takes you back to the same record you just saved.

The code below is working great though, saves New and Existing records and takes you right back into Edit mode on the same record you were just on

"<a class='Vibrant Success' onclick=$('#footerSaveAndKeepWorkingMenuOption').click();>Save and Keep Working</a>"

Thanks so much!
Photo of Shontay

Shontay

  • 490 Points 250 badge 2x thumb
This might be a silly question but do I add the redirect URL or the code is functional now
Just make a new URL button and paste in that new code and it should work.
Photo of Shontay

Shontay

  • 490 Points 250 badge 2x thumb
Thanks this worked
Photo of ROBERT SACHS

ROBERT SACHS

  • 440 Points 250 badge 2x thumb
I'm looking for a button to put on a form that simply saves the current changes to the form *without* having to close the form (and the reopen the record again to make more changes).  The above button formula URL almost works.  It does save the changes, but I get an error:

This site can’t be reached

%3Ca%20class%3D%27vibrant%20success%27%20onclick%3D%24%28%27’s serverDNS address could not be found.


ERR_NAME_NOT_RESOLVED

When I go back in the browser, the changes have been saved.  So like I said, it almost works.  Please advise.  
Is there a reason you don’t want to use the

“Save and Continue Editing” button.
Photo of ROBERT SACHS

ROBERT SACHS

  • 440 Points 250 badge 2x thumb
Well...that would be great, but I don't seem to have that button.  My Save button has "Save and Close" and "Save and Next".  
There is a setting in form properties to enable that feature. :). It’s called save and keep working.
Photo of ROBERT SACHS

ROBERT SACHS

  • 440 Points 250 badge 2x thumb
Who knew!  Bingo.  Why would they they bury that option rather than make it a default??  Thanks for the education. 
Photo of Adam Keever

Adam Keever

  • 2,430 Points 2k badge 2x thumb
This works great, but not on mobile. Any idea why?