Create a blank record in the specified table and open the newly created record in either Edit or View mode. This comes in handy when you need to to utilize the Record ID of the new record prior to it typically being available. Ex: Adding a new record, filling a few fields and clicking a URL that utilizes the Record ID.

This leverages EOTI by not passing in a Temp Token. In a production environment you should use Temporary Tokens. 
See GetTempToken.html for an example of how to get Temp Tokens.

URLRoot() & "db/" & AppID() & "?a=dbpage&pageid=12" // Open code page 12
& "&dbid=" & [_DBID_CURRENT_WEATHER] // Pass in the Table ID in which to add a new record
& "&mode=er" // Specify whether the landing form should be in edit (er) or display (dr) mode
AddRecordWithRID.html
12
<!DOCTYPE HTML>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Add Record with RID</title>
</head>
<style>
    .loader {
        border: 16px solid #f3f3f3;
        border-radius: 50%;
        border-top: 16px solid #3498db;
        width: 120px;
        height: 120px;
        -webkit-animation: spin 2s linear infinite; /* Safari */
        animation: spin 2s linear infinite;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* Safari */
    @-webkit-keyframes spin {
        0% { -webkit-transform: rotate(0deg); }
        100% { -webkit-transform: rotate(360deg); }
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
</style>
<script src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js'> </script>
<script>
    function run() {
        const realm = window.location.hostname.substring(0, window.location.hostname.indexOf("."));
        const urlParams = new URLSearchParams(window.location.search);
        const dbid = urlParams.get('dbid');
        const mode = urlParams.get('mode');

        statusStream('Creating a blank record...');

        // Create the payload to upsert a blank record into the provided table
        const payload = {
            "to": dbid,
            "data": [
                {}
            ]
        };

        $.ajax({
            url: 'https://api.quickbase.com/v1/records',
            headers: {
                'QB-Realm-Hostname': realm,
                'Authorization': `QB-TEMP-TOKEN ` // EOTI access doesn't require a token
            },
            method: 'POST',
            dataType: "json",
            contentType: "application/json; charset=utf-8",
            data: JSON.stringify(payload),
            success: function (response) {
                statusStream('Redirecting to the newly created record...');
                const rid = response.metadata.createdRecordIds[0];
                window.location.href = `https://${realm}.quickbase.com/db/${dbid}?a=${mode}&rid=${rid}`;
            }
        });
    }
    function statusStream(message){
        // Add message to the on screen status stream
        document.getElementById('statusLog').insertAdjacentHTML("beforeend", `${message}<br>`);
    }
</script>
<body onload="run()" style="text-align:center">
    <h2>Processing...</h2>
    <div class="loader" id="loader"></div>
    <br><br>
    <div id="statusLog" style="font-size:20px"></div>
</body>
</html>

<!--
These code samples are provided "AS IS" without any warranties of any kind and is not supported by Quickbase teams.
You are responsible for the security and maintenance of any third-party code inside of your application.
Any reliance on Quickbase functions, HTML, CSS or other document-object-model (DOM) elements should be considered unstable and may change at any time, without notice.

Builders should not reference or rely on common libraries hosted by Quickbase (such as jQuery or Angular) as these may change at any time.
Customers should reference their own hosted libraries or from 3rd-party resources that they can trust and maintain
-->
Show fields from Show fields from Show fields from a related table
Report Name *
Description
Reports and Charts Panel
Each table has a panel listing its reports and charts, organized in groups.
Please wait while your new report is saved...
Field label
Column heading override
Justification
What does auto mean?
Fields in:

Fields to Extract:

Name for the new table:
Items in the new table are called:

When you bring additional fields into a conversion, Quickbase often finds inconsistencies. For example, say you're converting your Companies column into its own table. One company, Acme Corporation, has offices in New York, Dallas and Portland. So, when you add the City column to the conversion, Quickbase finds three different locations for Acme. A single value in the column you're converting can only match one value in any additional field. Quickbase needs you to clean up the extra cities before it can create your new table. To do so, you have one of two choices:

  • If you want to create three separate Acme records (Acme-New York, Acme-Dallas and Acme-Portland) click the Conform link at the top of the column.
  • If the dissimilar entries are mistakes (say Acme only has one office in New York and the other locations are data-entry errors) go back into your table and correct the inconsistencies—in this case, changing all locations to New York. Then try the conversion again.

Read more about converting a column into a table.

We're glad you're interested in doing more with Quickbase!

Now we need to make you official before you share apps or manage your account.

Verifying your email lets you share Quickbase with others in your company.

Your work email
Your company