Appearance
Pre-fill Form Fields
Column Default Values
Form fields can be pre-filled with default values, available in column settings. This feature allows you to define static and predefined values.
Dynamic Values
Dynamic values can be added using the onRowInit hook. Below is an example of an onRowInit hook that uses the URL parameter first_name_default to pre-fill the first_name field.
✨ Example onRowInit Hook
js
((mode, getColumnValue, setColumnValue, setColumnStyle) => {
if (mode === "INSERT") {
const url = new URL(window.location.href)
const first_name_default = url.searchParams.get("first_name_default")
setColumnValue("first_name", first_name_default)
}
})