Expand all | Collapse all

Add Record with JavaScript

  • 1.  Add Record with JavaScript

    Posted 06-26-2018 15:25

    I am currently trying to add a record to already existing DB and I have code that is already adding records to the DB. My issue is my code will add a record but will not assign fields to the record.

    function AddDriverToQB(Driver, PolicyReviewData, apptoken){
        var AddDriverURL = "https://ctc.quickbase.com"">https://ctc.quickbase.com"">https://ctc.quickbase.com";
            AddDriverURL += "/db/";
            AddDriverURL += DBID;
            AddDriverURL += "?a=API_AddRecord";
            AddDriverURL += "&_policy___cert__no_="+ PolicyReviewData[0].policy___cert__no_;
            AddDriverURL += "&_insured_name=" + PolicyReviewData[0].insured_name;
            AddDriverURL += "&_driver_name=Guy Richie";
            AddDriverURL += "&apptoken=" + apptoken;
        $.get(AddDriverURL, true, function(){
           console.log("Driver Added"); 

    The data for the input are 2 arrays that I know return values as that is what is being printed out before the Add Record. Is there any reason the record would not record fields? 

    Thanks in advance.

  • 2.  RE: Add Record with JavaScript

    Posted 06-26-2018 16:09
    Ignore my question, I forgot to include the _fnm before my field names.