Discussions

Expand all | Collapse all

Redirect on Add Record API

  • 1.  Redirect on Add Record API

    Posted 08-13-2020 15:15

    I am using the Add record API in order to copy a record on mobile (there seems to be a glitch where you can't use the native copy functionality on mobile).

    Made a button using the add record API which also copies selected fields I want. Works great on mobile, and lands me on the new record I added. However, on mobile, it automatically redirects me from where I came.

    Any ideas on how to land on what I just created?



    ------------------------------
    Mike Tamoush
    ------------------------------


  • 2.  RE: Redirect on Add Record API

    Posted 08-17-2020 15:25
    Hi Mike,

    For the end of your button do you have any part of the call that is designating a nextURL or a redirect?

    ------------------------------
    Evan Martinez
    Community Marketing Manager
    Quick Base
    ------------------------------



  • 3.  RE: Redirect on Add Record API

    Posted 27 days ago
    I'm chiming in here and hoping for some suggestions. I'm using the following to call do save on a submit button, but I want to redirect to another website.

    "<a class= 'Vibrant Success' onclick='DoSave()' href='#https://anywebsite.com'>Click here to submit</a>"

    First: from the web experience, it saves the new record but does not redirect to the specified web page. Instead it goes to the UI page I have pointed to on the EOTI group. I don't like this because it appears to introduce an opportunity to hack security in the database. How can I bypass the default group page and redirect to my website?

    Second: the mobile version shows the native Save & Cancel buttons, and does not redirect anywhere. I would rather just avoid the mobile version and somehow request a desktop site instead. Is this doable from the original link used to access this EOTI form?

    ------------------------------
    Barry Dolan
    ------------------------------



  • 4.  RE: Redirect on Add Record API

    Posted 27 days ago
    You can go to the Advanced Properties of the app and there is a setting there to force the desktop mode.

    I think that the most reliable way to redirect on save (in desktop mode only) is to specify that in the original link to add the record.

    like this

    var text ADD = your url here to add a a record ;
    var text Redirect = you URL here to redirect to.;

    $URL
    & "&NextURL=" & URLEncode($Redirect)

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



  • 5.  RE: Redirect on Add Record API

    Posted 27 days ago
    Thanks Mark, but please forgive my ignorance. I am so new to html I don't even know how to spell URL!

    Based on the anchor attribute I put in my first post, where am I supposed to put the code you gave me?

    ------------------------------
    Barry Dolan
    ------------------------------



  • 6.  RE: Redirect on Add Record API

    Posted 27 days ago
    You can try this button

    "<a id='saveButton' class='Vibrant Success' onclick='DoSave()' href='#'>WhatEverYouWantYourButtonToSay</a>"



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



  • 7.  RE: Redirect on Add Record API

    Posted 27 days ago
    That code changes nothing, I still end up going back to the page for my EOTI group. 

    I'm curious though on where I put this code;
         var text ADD = your url here to add a a record ;
         var text Redirect = you URL here to redirect to.;

         $URL
         & "&NextURL=" & URLEncode($Redirect)

    ------------------------------
    Barry Dolan
    ------------------------------



  • 8.  RE: Redirect on Add Record API

    Posted 27 days ago
    I presume that you have link for these EOTI users to use to add a record.  I suggest using the code 

     var text ADD = your url here to add a a record ;
         var text Redirect = you URL here to redirect to.;

         $URL
         & "&NextURL=" & URLEncode($Redirect)

    to generate the link.  Just make that formula and expose the URL code and that will be your link.

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



  • 9.  RE: Redirect on Add Record API

    Posted 27 days ago
    I do have a link from an outside website that allows EOTI users to enter data on a form, but they must click the Submit button to save it. The form works perfect but I'm just trying to redirect after they save. Everything seems secure on the form, but after they click the submit button it takes them to home page for EOTI group users, where I have a link to access the main website again. I'm trying to avoid that page though.
     
    So far I haven't found anyone that is having success redirecting to an outside web page after adding a record.

    ------------------------------
    Barry Dolan
    ------------------------------



  • 10.  RE: Redirect on Add Record API

    Posted 27 days ago
    How do these users find a link to ads a record?

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



  • 11.  RE: Redirect on Add Record API

    Posted 27 days ago
    From my main website.

    https://bobfaulk.quickbase.com/db/bqvadch64?a=nwr&ifv=1#

    Please feel free to follow the link and enter test data and select all the required fields and click on Submit. I'll delete the record afterwards, but you will be able to see what I'm referring to. I want to ensure it's secure, and I would ultimately like to avoid the page after clicking Submit.

    ------------------------------
    Barry Dolan
    ------------------------------



  • 12.  RE: Redirect on Add Record API

    Posted 27 days ago
    I am suggesting that you change this link to what I suggested
    bobfaulk.quickbase.com/db/bqvadch64?a=nwr&ifv=1#


    I suggested this

    I presume that you have link for these EOTI users to use to add a record.  I suggest using the code 

     var text ADD = your url here to add a a record ;
         var text Redirect = you URL here to redirect to.;

         $URL
         & "&NextURL=" & URLEncode($Redirect)

    to generate the link.  Just make that formula and expose the URL code and that will be your link.

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



  • 13.  RE: Redirect on Add Record API

    Posted 27 days ago
    It is possible that you need to contact support to have them enable ability to redirect outside Quick Base.  They may have a setting for that.  way way back have an inkling memory of that.  I was trying to a website and it was failing and then I tried redirecting to www.google.com which I knew for sure was up and running, and that was failing.  So I think that there is a setting they control at the Realm level.

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



  • 14.  RE: Redirect on Add Record API

    Posted 27 days ago
    Alright, will do. Hopefully they don't want my first born for it. Lol!

    Thanks,

    ------------------------------
    Barry Dolan
    ------------------------------



  • 15.  RE: Redirect on Add Record API

    Posted 27 days ago
    I found the answer.

    I use this code to redirect from the EOTI group page:

    <META HTTP-EQUIV=REFRESH CONTENT="0; URL=http://www.yourwebsiteURL">


    ------------------------------
    Barry Dolan
    ------------------------------



  • 16.  RE: Redirect on Add Record API

    Posted 27 days ago
    Where did you put that code?

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



  • 17.  RE: Redirect on Add Record API

    Posted 27 days ago
    On the rich text html page in the app settings. This is the page assigned to my EOTI group.

    I bet there is a lot of people that want to know how to do this. I should copyright it and sell the rights! Lol

    ------------------------------
    Barry Dolan
    ------------------------------