Skip to content
Log in

CustomFormQuestion - Liquid Object Reference

On this page

Description

The CustomFormQuestion object represents a question from a CustomForm.

:::note This object supports custom data via the data attribute. :::

Backed by

This drop renders the s_c__Form_Question__c Salesforce object. A theme writes it as custom_form_question.

Liquid attribute Salesforce field
data_type s_c__Data_Type__c
position s_c__Position__c

Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.

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.

Attributes

Attribute Type Description
data_type String Returns the type of data that is expected for the answer of this CustomFormQuestion
default_value String Returns the default value for the answer of this CustomFormQuestion
direct_upload_url String Returns the direct upload URL for uploading the file attachment answer of this CustomFormQuestion
editable? Boolean Returns true if the CustomFormQuestion is editable
form CustomForm Returns the CustomForm associated with this CustomFormQuestion
hidden? Boolean Indicates whether or not this CustomFormQuestion should be hidden from the user
id String Returns a unique ID for this CustomFormQuestion
picklist_options List[PicklistOption] Returns the list of PicklistOptions this CustomFormQuestion
position Number Returns the position of this CustomFormQuestion
question_content String Returns the question content of the CustomFormQuestion as rich text
required? Boolean Indicates whether or not this CustomFormQuestion is required

Available on

Was this article helpful?

Was this article helpful?