ARShadesForm
Purpose
The ARShadesForm collection stores configuration and submission data for custom forms. Each document defines form fields, call-to-action settings, recipient emails, modal options, and logs of form activity. This collection is used to manage, display, and track user-submitted forms and their delivery.
Document schema
{
"emails_sent_number": "string",
"fieldsList": [
{
"label": "string",
"value": "string"
}
],
"formCallToAction": "string",
"formCallToActionPosition": "string",
"formDescription": "string",
"isFormInModal": "boolean",
"log": [
{
"date": "timestamp",
"errorMessage": "string"
}
],
"modalCallToAction": "string",
"modalCallToActionPosition": "string",
"sendTo": "string",
"sendTo_cc_List": ["string"],
"title": "string",
}
Indexes
This collection does not have external indexes.
Query examples
// Fetch the Reference Doc from Firebase
const formRef = doc(db, "ARShadesForm", formId);
// Get the Document Snapshot from the Reference Doc
const formSnap = await getDoc(formRef);
// Query ARShadesForm by title
const formByTitle = query(
collection(db, "ARShadesForm"),
where("title", "==", "Contattaci")
);