Class SurveyItemData
Represents a single survey content item, which could be a question, header, or subheader. This ScriptableObject allows for defining the structure and behavior of each content item in the SurveyPageData?text=survey+page.
[CreateAssetMenu(fileName = "New SurveyContent", menuName = "ScriptableObject/Assessments/Survey/Contents", order = 2)]
public class SurveyItemData : ScriptableObject
Inheritance
Properties
AttentionCheckSelectedCondition
The logical operator used to evaluate the attention check criteria.
public SurveyItemData.AttentionCheckParameters.LogicalCondition AttentionCheckSelectedCondition { get; }
Property Value
AttnetionCheckValue
The list of expected values used to validate user response and attention.
public string[] AttnetionCheckValue { get; }
Property Value
string[]
EnableAttentionCheck
Returns true if the attention check feature is enabled.
public bool EnableAttentionCheck { get; }
Property Value
bool
InfoTip
The text content of the info tip if enabled.
public string InfoTip { get; }
Property Value
string
IsInfoTipEnabled
Indicates whether the info tip is enabled.
public bool IsInfoTipEnabled { get; }
Property Value
bool
Layout
Gets the layout configuration for how input options are arranged.
- horizontal � Input options are displayed side-by-side in a single row.
- vertical � Input options are stacked top-to-bottom in a column.
public SurveyItemData.SurveyContentLayout Layout { get; }
Property Value
OptionsData
The optionsData?text=input+configuration associated with this survey question.
public InputOptionsData OptionsData { get; }
Property Value
Required
Returns true if this question must be answered by the user.
public bool Required { get; }
Property Value
bool
Text
Gets the main content text?text=text for this survey content.
public string Text { get; }
Property Value
string
Type
Gets the type?text=type of survey content.
public SurveyItemData.SurveyContentType Type { get; }