Forum Discussion

Re: Save and Keep Working Button

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
------------------------------

2 Replies

  • LisaSell1's avatar
    LisaSell1
    Qrew Trainee
    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
    ------------------------------
    • DanielJohnson2's avatar
      DanielJohnson2
      Qrew Trainee
      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
      ------------------------------