Skip to content

Forms

forms are the dealer’s website forms: enquiry, finance, service, newsletter and so on. Each has form_fields. Submissions are in Form submissions.

query Form($id: uuid!) {
forms_by_pk(id: $id) {
id
name
button_text
on_success_message
create_moment_on_submit
form_fields(order_by: { order: asc }) {
name
label
type
options
rules
help_text
}
}
}
query Forms($showroomId: uuid!) {
forms(
where: { showroom_id: { _eq: $showroomId }, is_internal: { _eq: false } }
order_by: { name: asc }
) {
id
name
created_at
}
}
Field Notes
create_moment_on_submit Submissions also create an enquiry.
signup_user_on_submit Submissions create a customer account.
is_internal Used by staff in the Dashboard, not on the website.
form_fields.name The key the answer is stored under in a submission’s values.
form_fields.type The input type, such as text, email, phone, select or checkbox.
form_fields.options Choices for select and radio fields.