Forum Discussion

DouglasFolk's avatar
DouglasFolk
Qrew Cadet
4 years ago

Add button that saves the current document and redirects in Mobile App

Why isn't there a genuine-home grown button command in Quickbase? First question.

In my database I have the user fill out a description then I want them to "GET THERE NUMBER" (Button)

This works on a web browser but not on the app.

var text URLONE=URLRoot() & "db/" & Dbid() & "?-er&rid=" & URLEncode ([Record ID#]);

"<a class='Vibrant Snowy' style=\"width:100px; text-align: center; background-color:#81DBF8; onclick=\"javascript: DoSaveAdd();\" \" href=\"" & $URLONE & "\"></a>"

This is a simple ask, yes?
I don't understand why there isn't a direct answer to this question from Quickbase. E.g How to add a button using....

------------------------------
Douglas Folk
------------------------------

5 Replies

  • Hi Douglas, can you provide a better description if your desired work flow.

    Where is the user starting, what do they do next and where do you want them to land after doing that?

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • DouglasFolk's avatar
      DouglasFolk
      Qrew Cadet
      I am creating sequential numbers for physical parts, phantom parts and assemblies = Part numbers.
      I am using the Record  ID + a number to = my final number.

      To do this and because the number isn't calculated until the document is saved...
      Work flow is they click to create a new RECORD.
      -The form requires them to enter a descrition.
      -After the description is entered
      -Show a button - "Get My Number" 
      -The button saves the doc and redirects. 


      However - this doesn't work on the app. Further investigation indicates I shouldn't be using Javascript in this area anyway.

      var text URLONE=URLRoot() & "db/" & Dbid() & "?-er&rid=" & URLEncode ([Record ID#]);

      "<a class='Vibrant Snowy' style=\"width:100px; text-align: center; background-color:#81DBF8; onclick=\"javascript: DoSaveAdd();\" \" href=\"" & $URLONE & "\"></a>"


      Help is appreciated.

      ------------------------------
      Douglas Folk
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        Where are your trying to redirect to?  Or do you just want them to save the record.  Why not just have them save the record?  You can have directions on the screen. 

        "Please save record to get your number."

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------