Save Knack Record ID
How to save the behind-the-scenes Knack Record ID to relate records or send child record emails



The JS
In order to the save the Knack Record ID, we use a View Based PUT with the Knack API.
The CSS
None needed 😎
How to Implement
Create a short text field for the parent object to capture the Knack Record ID

Create a text formula field on the child object that is set to the Knack Record ID field on the parent object

Create a new page to Save the Record ID

Make sure the page settings do NOT have the page included in the page menu

Add a parent object form view to the page that will only show the Knack Record ID field. No additional form rules are needed.

Establish a form submit page or multi-page application where the parent object is created if there is not one already. For example, in the TDS TIA Module there is a parent object multi-page application. The TIA Applicant Information is the first page in this application where the parent object is created. This is the form view that will save the Knack Record ID.

Update the JS for data section where the Record ID is stored with the correct Field ID
Update the JS handlers for both the first and second forms with the correct View IDs
Lastly, the url in the function will need to be updated with the Scene and View IDs of the Save Record ID page
Last updated
Was this helpful?