Form Question Object Reference
On this page
Overview
Represents a question for a customer to answer to collect arbitrary information in a form.
| Property | Value |
|---|---|
| API Name | s_c__Form_Question__c |
| Label | Form Question |
| Plural Label | Form Questions |
| Type | Custom Object |
Fields
| Field Label | API Name | Type | Required | Description |
|---|---|---|---|---|
| Data Type | s_c__Data_Type__c |
Picklist | No | The data type of the form answer. |
| Default Type | s_c__Default_Type__c |
Picklist | No | The type of default value to evaluate. |
| Default Value | s_c__Default_Value__c |
LongTextArea(32768) | No | The default value evaluated based on default type. |
| Editable | s_c__Editable__c |
Checkbox | No | Determines whether the answers to this Form Question should be editable by the user. |
| Form | s_c__Form_Id__c |
Lookup (s_c__Form__c) | No | The form associated to this question. |
| Hidden | s_c__Hidden__c |
Checkbox | No | Determines whether the question should not be visible on the form. |
| Picklist Options | s_c__Picklist_Options__c |
LongTextArea(32768) | No | The list of options for a picklist or multi-picklist evaluated based on picklist type. |
| Picklist Type | s_c__Picklist_Type__c |
Picklist | No | The type of picklist options. |
| Position | s_c__Position__c |
Number(18,0) | No | The position of this question on the form. Lower numbers are shown first, records without a number are sorted alphabetically by name. |
| Question (Markdown) | s_c__Question_Markdown__c |
LongTextArea(131072) | No | The question on the form to be presented to the customer. |
| Required | s_c__Required__c |
Checkbox | No | Determines whether the question is required to proceed. |
| Validation Rules | s_c__Validation_Rules__c |
LongTextArea(1024) | No | Determines the criteria/conditions to be met on a question. |
Relationships
| Field | Type | Related Object | Relationship Name |
|---|---|---|---|
s_c__Form_Id__c |
Lookup | s_c__Form__c | Form_Question_Form |
Referenced by
These objects hold a lookup or master-detail relationship to Form Question (s_c__Form_Question__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_Answer__c | s_c__Form_Question_Id__c |
Lookup | Form_Answer_Form_Question | s_c__Form_Submission__c |
On the storefront
Storefront templates read this object through the CustomFormQuestion Liquid object, written as custom_form_question in a theme.
| Salesforce field | Liquid attribute |
|---|---|
s_c__Data_Type__c |
custom_form_question.data_type |
s_c__Position__c |
custom_form_question.position |
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from custom_form_question.data. See custom data fields in Liquid.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.