Forum Discussion
BenjaminLarrabe
10 years agoQrew Cadet
Try this code in a formula text button:
"<a class='Vibrant Success' onclick=$('#RedirectURL').val(document.location.href.replace(/&rl=[a-z0-9]*/,''));$('[name=rl]').val('');$('#saveButton').trigger('click'); href='#'>Update & Keep Working</a>
"<a class='Vibrant Success' onclick=$('#RedirectURL').val(document.location.href.replace(/&rl=[a-z0-9]*/,''));$('[name=rl]').val('');$('#saveButton').trigger('click'); href='#'>Update & Keep Working</a>
QuickBaseCoachD
8 years agoQrew Captain
Courtesy of Dan Diebolt
Dan 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:
"<div style='Vibrant Success' onclick=$('#footerSaveAndKeepWorkingMenuOption').click();>Save and Keep Working</div>"
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.
Dan 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:
"<div style='Vibrant Success' onclick=$('#footerSaveAndKeepWorkingMenuOption').click();>Save and Keep Working</div>"
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.