Forum Discussion

TimEgerton's avatar
TimEgerton
Qrew Trainee
4 years ago

API_GenAddRecordForm & Dashboard Buttons Widget

Hi,

We are trying to use the Dashboard Button widget (Page URL option) to add a new record via three different forms (each in a different language) to a single table using API_GenAddRecordForm as per below.

https://TARGET DOMAIN/db/bqwga5efh?a=API_GenAddRecordForm&_dfid=2 & apptoken=APP TOKEN

https://TARGET DOMAIN/db/bqwga5efh?a=API_GenAddRecordForm&_dfid=11 & apptoken=APP TOKEN

https://TARGET DOMAIN/db/bqwga5efh?a=API_GenAddRecordForm&_dfid=10 & apptoken=APP TOKEN

However it is using the same form (dfid=2) for each.

dfid=2 is the add new record form when you are logged in.

It is a EOTI app.

Thanks,

Tim



------------------------------
Tim Egerton
------------------------------

13 Replies

  • Can you please post the exact text of the widget code For any one of the buttons. Or are you actually saying that that is your actual code.  I do not need to know your target domain but everything else.

    if that is your actual code then try closing up the spaces between where you specify the form ID and where are you specify the app token.

    You are building a URL that needs to travel through the Internet. URLs do not ever have spaces.



    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • TimEgerton's avatar
      TimEgerton
      Qrew Trainee

      Hi Mark,

      Removed the spaces and still no working.

      Could it be something to do with "Set how different roles uses these forms" option?

      Thanks,

      Tim



      ------------------------------
      Tim Egerton
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend

        The syntax for the form ID was incorrect. Remove the underscore. 

        Also, while this was probably not the error as the parameter would be ignored, you do not need to provide an application token when a human user is editing or adding a record manually. 

        https://TARGET DOMAIN/db/bqwga5efh?a=API_GenAddRecordForm&dfid=2



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