Forum Discussion

SaidZaripov's avatar
SaidZaripov
Qrew Member
6 months ago

How to set Approve button not to disappear after I click it

Hello everyone, by following Approve button in the exchange I have set folling property for my apporved button:

But everytime I click this button it will disappear, is there any way to let remain in the form?

Thanks



------------------------------
Said Zaripov
------------------------------

3 Replies

  • Formula:

    var text urlToExecute = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&apptoken=REMOVED"
        & "&rid=" & [Record ID#] & "&_fid_105=" & Today();
        
    var text RefreshPage = URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();

    If(IsNull([Order Approval Date]) and IsNull([Request Rejection Date]), $urlToExecute & "&rdr=" & URLEncode($RefreshPage) )



    ------------------------------
    Said Zaripov
    ------------------------------
    • ChayceDuncan's avatar
      ChayceDuncan
      Qrew Captain

      Remove one or both of the conditions in your If statement: 

      If(IsNull([Order Approval Date]) and IsNull([Request Rejection Date]), $urlToExecute & "&rdr=" & URLEncode($RefreshPage) )

      Your button is dropping because either of the order approval date or rejection date is being populated, I assume with the button. The above states that both have to be null for the button to show. You could just do: 

      $urlToExecute & "&rdr=" & URLEncode($RefreshPage)

      By itself if you wanted the button there no matter what .



      ------------------------------
      Chayce Duncan
      ------------------------------
      • SaidZaripov's avatar
        SaidZaripov
        Qrew Member

        It's working! Thank you so much!



        ------------------------------
        Said Zaripov
        ------------------------------