Forum Discussion
AlexWilkinson
7 years agoQrew Assistant Captain
Here's a cleaner way to do this, replicating the color and style of the standard 'Save & keep working button' while allowing it to be placed anywhere on the form:
1) In the form properties, check the box to "Show save & keep working choice." (It's not necessary to also check the box to show the save and cancel buttons at the bottom of the form. That's optional.)
2) Create a global variable for your app at Setting >> Variables ... Let's say you call it "mySaveKeepWorking" or something similar ... and give it exactly the following value (the quotes are critical!)
<a class='Vibrant' style='font-size:14px; color:white; background:#6BBD57; white-space:nowrap;' onclick='$("#saveAndKeepWorkingMenuOption").click();'>Save & keep working</a>
3) In your table, create a rich text variable ... say it's called "mySKW" and give it exactly and only the following value:
[mySaveKeepWorking]
4) In your form, place the mySKW field wherever you want, as often as you like. Each time, be sure to check the box for "Use Alternate Label Text" while leaving the value blank, and to set the form-row for "edit and add" modes.
When you save the form, Quick Base will ask you to confirm that you really do want the mySKW field to appear multiple times, which you do!
That's it. One wrinkle: it might be nice to have mySKW return to the same spot on the form where it was clicked. That's doable but a bit fancier. Post back here if interested.
1) In the form properties, check the box to "Show save & keep working choice." (It's not necessary to also check the box to show the save and cancel buttons at the bottom of the form. That's optional.)
2) Create a global variable for your app at Setting >> Variables ... Let's say you call it "mySaveKeepWorking" or something similar ... and give it exactly the following value (the quotes are critical!)
<a class='Vibrant' style='font-size:14px; color:white; background:#6BBD57; white-space:nowrap;' onclick='$("#saveAndKeepWorkingMenuOption").click();'>Save & keep working</a>
3) In your table, create a rich text variable ... say it's called "mySKW" and give it exactly and only the following value:
[mySaveKeepWorking]
4) In your form, place the mySKW field wherever you want, as often as you like. Each time, be sure to check the box for "Use Alternate Label Text" while leaving the value blank, and to set the form-row for "edit and add" modes.
When you save the form, Quick Base will ask you to confirm that you really do want the mySKW field to appear multiple times, which you do!
That's it. One wrinkle: it might be nice to have mySKW return to the same spot on the form where it was clicked. That's doable but a bit fancier. Post back here if interested.
AlexWilkinson
7 years agoQrew Assistant Captain
Yes. You could make three global variables, one for each of the possible values on the drop-down in the standard green save button.
the field "mySC" would use [mySaveClose] which would have #saveMenuOption
the field "mySN" would use [mySaveNext] would have #saveAndNextMenuOption
... instead of #saveAndKeepWorkingMenuOption ... otherwise everything is identical.
Quick Base could change these, of course, but that seems low-probability for now. You can find them by using the developer tools in your browser to inspect the source code for a page, and doing ctrl-F for "#save" ...
the field "mySC" would use [mySaveClose] which would have #saveMenuOption
the field "mySN" would use [mySaveNext] would have #saveAndNextMenuOption
... instead of #saveAndKeepWorkingMenuOption ... otherwise everything is identical.
Quick Base could change these, of course, but that seems low-probability for now. You can find them by using the developer tools in your browser to inspect the source code for a page, and doing ctrl-F for "#save" ...