Defining a Boolean value for a field
BMC Helix Innovation Studio includes a Custom Boolean Field component, which is available in the Shared Components section of the View designer. The Custom Boolean Field component is visible only if you deploy the Shared Components bundle.
Using this component define a Boolean value for a field. You can define custom values for the Boolean field.
To add the Custom Boolean Field component to a view definition
- Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
- Select the application for which you want to add a Custom Boolean Field component.
- On the Views tab, click the name of the view definition to which you want to add a Custom Boolean Field component.
- From Palette, drag the Custom Boolean Field component.
In the Properties pane, click Settings
, and then specify the properties as indicated in the following table:
Property
Action
Description
Field name
From the record definition, select a field name for which you want to set a Boolean value.
The Field name lists all Boolean fields in the selected record definition. The Field name list is empty, if there are no Boolean fields in the record definition.
Display label
Enter name for Custom Boolean Field.
Editing Mode
Select Editing Mode from the following options:
- Switch
- Checkbox
Value
Build a query to define the default value for Custom Boolean Field. The query returns 0 for a false value and 1 for a true value.
Disabled
Turn on the toggle key to disable the Custom Boolean Field at run time.
Hidden
Turn on the toggle key to hide Custom Boolean Field at run time.
Available on Devices
Select device type where Custom Boolean Field is displayed. Select from the following options:
- Desktop
- Mobile
- Tablet
CSS classes
Define a CSS class at runtime.
Display Label for true
Enter label for the Boolean value true.
The default Boolean value true is displayed if you keep the Display Label for true field empty.
Display Label for false
Enter label for the Boolean value false.
The default Boolean value false is displayed if you keep the Display Label for false field empty.
- Click Save.
Results
The following image shows a case with the following three custom Boolean fields:
- Resolution Code Required
- Resolution Description Required
- Resolve Case on Last Task Completion