Forum Discussion

HemaRajendran1's avatar
HemaRajendran1
Qrew Trainee
3 years ago

A Pop-up message appears when clicking the formula-URL button in Edit mode

Hi Folks,
I created a Formula-URL button to change the value and redirect to the same page. The issue I'm facing here is,
* When I click the button in Edit mode, a popup appears saying "Changes you made may not be saved"
* Click the leave button in the pop-up (the changes are made and redirected to the same page)

Code:
If(
(not IsNull([Project record ID#])and [Sign Off Status]="1. Draft"),
var text Endorsementbypass =URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Project record ID#] & "&apptoken=abcdeff" &
//SignOff Status
"&_fid_182=" & URLEncode("15. TSP Endorsement Bypass")&
//Project Disposition
"&_fid_18=" & URLEncode("Portfolio Mgr Review") &
//Business Proposal and Charter - Reporting
"&_fid_377=" & URLEncode("Checked") &
"&rdr=" & URLEncode (URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl()); $Endorsementbypass,"")


Thanks,
Hema


------------------------------
Hema Rajendran
------------------------------

7 Replies

  • The most simple solution is to only show that button in view mode and not edit mode.  Is that an option for your workflow?

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------
    • HemaRajendran1's avatar
      HemaRajendran1
      Qrew Trainee

      Unfortunately NO:(

      But I'm thinking to change the field to formula - Rich text

      Referred this page: https://help.quickbase.com/user-assistance/configure_url_fields.html

      Relevant section from the documentation:

      Use the CSS class (SaveBeforeNavigating) inside of a formula-rich text field and Quickbase will save the record before navigating.
      Note: Only one of these workflow classes is supported per formula-rich text.
      Here’s an example of a formula-rich text field that uses this feature:

      <a class='Vibrant Success SaveBeforeNavigating' data-replaceRid=true href='https://community.quickbase.com/db/abc?a=dr&rid=%%rid%%'>Click here</a>



      ------------------------------
      Hema Rajendran
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        Yes, then you will need to use the SaveBeforeNavigating syntax.

        ------------------------------
        Mark Shnier (YQC)
        mark.shnier@gmail.com
        ------------------------------