Form Object Reference
On this page
Overview
Forms represent the type of arbitrary information to be collected from a customer.
| Property | Value |
|---|---|
| API Name | s_c__Form__c |
| Label | Form |
| Plural Label | Forms |
| Type | Custom Object |
Fields
| Field Label | API Name | Type | Required | Description |
|---|---|---|---|---|
| Conditions | s_c__Conditions__c |
LongTextArea(1024) | No | The conditions under which the form should be shown. |
| Display Mode | s_c__Display_Mode__c |
Picklist | No | The display mode of the form. |
| Display Name | s_c__Display_Name__c |
Text(255) | No | The preferred form name to show on the form. If empty, Name will be shown instead. |
| Identifier | s_c__Identifier__c |
Text(255) | No | A globally unique identifier for this form. |
| Record Type Name | s_c__Record_Type_Name__c |
Text(50) | No | For internal use only. |
| Success (Markdown) | s_c__Success_Markdown__c |
LongTextArea(131072) | No | The content to be presented to the customer when a CustomForm is submitted successfully. |
| Success Page | s_c__Success_Page_Id__c |
Lookup (s_c__Page__c) | No | The page to be displayed when the CustomForm is submitted successfully. |
Relationships
| Field | Type | Related Object | Relationship Name |
|---|---|---|---|
s_c__Success_Page_Id__c |
Lookup | s_c__Page__c | Form_Success_Page |
Referenced by
These objects hold a lookup or master-detail relationship to Form (s_c__Form__c). Where the referring record exists to join things together, Also links to shows what it connects this object to.
| Object | Field | Type | Relationship Name | Also links to |
|---|---|---|---|---|
| s_c__Form_Question__c | s_c__Form_Id__c |
Lookup | Form_Question_Form | — |
| s_c__Form_Submission__c | s_c__Form_Id__c |
Lookup | Form_Submission_Form | — |
| s_c__Product_Form__c | s_c__Form_Id__c |
Lookup | Product_Form_Form | Product2 |
| s_c__Store_Form__c | s_c__Form_Id__c |
Lookup | Store_Form_Form | s_c__Store__c |
On the storefront
Storefront templates read this object through the CustomForm Liquid object, written as custom_form in a theme.
| Salesforce field | Liquid attribute |
|---|---|
s_c__Display_Name__c |
custom_form.name |
s_c__Identifier__c |
custom_form.identifier |
s_c__Record_Type_Name__c |
custom_form.type |
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from custom_form.data. See custom data fields in Liquid.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.