Save & Edit Button - Updated Formula

  • 0
  • 1
  • Question
  • Updated 7 months ago
  • Answered
I have a save button that returned the user to the form in edit mode.  Functionality has been knocked out as a result of a release or two, so the button now only saves (and form stays in read-only mode).  Was hoping someone could help update the formula (clearly not a developer here!).  Formula is:

"<a class='Vibrant Success' onclick='DoSaveAdd()' href='#'>Save</a>"

Thank you!
Photo of Tammy Hanneman

Tammy Hanneman

  • 80 Points 75 badge 2x thumb

Posted 7 months ago

  • 0
  • 1
Photo of Gaurav Sharma

Gaurav Sharma

  • 5,756 Points 5k badge 2x thumb
Hi Tammy,

Your above formula only will save the record.
"<a class='Vibrant Success' onclick='DoSaveAddAndAnother()' href='#'>22B. Save and Add Another</a>"
Try this and let me know if you face any issues.

Thanks,

Gaurav
Photo of Tammy Hanneman

Tammy Hanneman

  • 80 Points 75 badge 2x thumb
Hi Gaurav,

Thank you so much for taking the time to respond.  Upon using the save button, I'm actually trying to redirect the user back to the current form in edit mode, rather than adding a new record.  Is that possible? 

I appreciate your help!
Take care,
Tammy
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,036 Points 50k badge 2x thumb
Tammy,
This may help

moⲆan the ultimate (Champion) replied to this question:
Is it possible to create a "Save and Keep Working" button from a formula URL field?

Put a Rich Text Formula field in the middle of your form with this definition:

"Save and Keep Working"

When it is clicked it will trigger the clicking of the native Save and Keep Working button (even though it is not visible at the moment). FWIW, this type of strategy of embedding JavaScript into a form which emulates a user clicking on a native features is safer than other methods of more directly invading the native markup and code.

Additional code https://community.quickbase.com/quick...

Ryan Blackwood commented on a reply to this question:
Button to save and stay in EDITING record form
I think this is what I was looking for, however, div doesn't work (it doesn't create a button, just displays static text "Save and Keep Working").

I changed it to:
"Save and Keep Working"

This now gives me a button that works. Thanks so much!
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 51,036 Points 50k badge 2x thumb
Tammy follow this thread. I was on an ipad and could not expose the code in the links

https://community.quickbase.com/quick...