Repository navigation
UIParam Bool
SmartJSONEditor edited this page Aug 30, 2017
·
5 revisions

Bool parameter allows to save and return true/false values.
this.parameters = function () {
var boolUIParameter = {
name: "myBoolParam",
type: "Bool",
displayName: "Bool Parameter",
description: "Toggle parameters to set on/off",
defaultValue: true
};
return [boolUIParameter];
}
this.environments = function (parameters, info) {
var boolParameterValue = parameters.myBoolParam; // Bool value
DocumentModel.log(boolParameterValue);
};All UI parameters are Javascript Objects.
Name property identifies the parameter name and also returns the value in functions that receives the parameters input. Access the value using the parameters.name property.
Bool, set the type as "Bool"
Interface display name.
Interface detail text
Input any True/False value as a default value.