MobileCRM.UI.QuestionnaireForm.Question - Resconet/JSBridge GitHub Wiki

MobileCRM.UI.QuestionnaireForm.Question Object

Properties

Property Type Description
id String Gets the id of this question record.
name String Gets the name of the question item.
label String Gets or sets the question item label.
index Number Gets the index of the question item.
groupId String Gets the id of parent question group (may be empty).
description String Get or sets the question item description.
type Number Gets the value type of the question item.
value Any Gets current answer value. To change it, use trySetAnswer method.
style String Gets or sets the question item style name.
isAnswered Boolean Indicates whether the item is answered.
isVisible Boolean Indicates whether the item is visible.
isEnabled Boolean Indicates whether the item is enabled.
focus Boolean Set to true to focus the question item.
validate Boolean Indicates whether the item should be validated.
errorMessage String Holds the error message text related to current value of the question item.

Methods

Method Description
focus Asynchronously sets the focus on this question.
trySetAnswer Asynchronously sets the answer value for this question.