Discussions

Expand all | Collapse all

Save and Keep Working Button

  • 1.  Save and Keep Working Button

    Posted 8 days ago
    Edited by Daniel Johnson 8 days ago
    Hi All,

    Is there a way to add the Save & Keep Working option as a button in a form? I've found other posts claiming to be able to do this with this pasted into a Formula - Rich Text field:

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

    However, when I try and save that I get this error:

    There are one or more problems with your entry

    Only text, Quickbase-accepted functions, fields, variables, and certain HTML tags are allowed in this field. JavaScript is not supported.

    Any ideas?

    ------------------------------
    Daniel Johnson
    ------------------------------


  • 2.  RE: Save and Keep Working Button

    Posted 8 days ago
    Just tried the suggestion from here: https://resources.quickbase.com/db/bq8meiyhh?a=dr&key=-1

    In a Formula - URL field put:

    var text rid =
    If([Record ID#]>0,
    ToText([Record ID#]), // Record ID already exists
    "%%rid%%" // New record, no Record ID exists yet
    )
    ;
    var text url = URLRoot() & "db/" & Dbid() & "?a=er&rid=" & $rid;

    "<a class='Vibrant Primary SaveBeforeNavigating' data-replaceRid=true href='" & $url & "'>Save & Keep Working - Rich Text</a>"

    That spit out the following error in Chrome:

    This site can't be reached

    Check if there is a typo in %3Ca%20class%3D%27vibrant%20primary%20savebeforenavigating%27%20data-replacerid%3Dtrue%20href%3D%27https.

    If spelling is correct, try running Windows Network Diagnostics.

    DNS_PROBE_FINISHED_NXDOMAIN

    Any ideas?

    ------------------------------
    Daniel Johnson
    ------------------------------



  • 3.  RE: Save and Keep Working Button

    Posted 7 days ago
    Hi Daniel,
    I'm glad you posted the link to the code pages - I just tried this myself
    Make your field a formula Rich Text field to make the button work. You may also want to adjust the Advanced table settings & check the option 'Auto save when redirected away from the page.'

    ------------------------------
    Lisa Sell
    ------------------------------



  • 4.  RE: Save and Keep Working Button

    Posted 7 days ago
    Edited by Daniel Johnson 7 days ago
    That worked! Thanks Lisa! Adjusting the auto save setting to be turned on also eliminated a popup asking if the user wants to save the work (which is the whole point of the button), so thanks for that!

    Any idea how to get the page to load to the location of the button?

    ------------------------------
    Daniel Johnson
    ------------------------------