Forum Discussion
Here's the page you're looking for:
https://resources.quickbase.com/db/bq8meiyhh?a=dr&key=14
To get here from the code pages home, click the big purple button on the left, then fill out the new record form and submit. On the next page, click the instructions button on the right. It will then (finally) take you to the instructions page I linked. Simple, right?
Their example is really complex and IMO kind of redundant with an existing native add record form. If your user needs to provide input to create the record, then I would simply link them to the existing add record form and be done with it.
But if you already have a code page that is doing something else (like generating a lot of data that you eventually want added to a record), then the QB example is probably more appropriate (albeit far more complicated).
Without providing the code (because a lot of it would be out of context), here's how I've cracked this in the past using JS in a code page:
- Prep the data/payload for the JSON API request
- Prep the headers for the same request
- Make the request (with a synchronous ajax request)
- Parse the response to get the record ID
- Construct the URL containing the new record ID
- Open the URL
------------------------------
gary
------------------------------