Yes/No

<< Click to Display Table of Contents >>

Navigation:  Bizagi Studio > Process wizard > Define Forms > Form Controls >

Yes/No

Use

The Yes/No control displays a Boolean attribute for the end user to select between Yes and No options.

 

Related to attribute types

This control is related to Boolean attributes.

 

Properties

The following properties are exclusive to the Yes/No control:

 

Basic tab

 

PROPERTY

DESCRIPTION

Display as

Defines how the control will be visually displayed.

Option: Displays two options, Yes and No. Only one option can be selected.

Checkbox: Displays a checkbox. If checked, the control value will be "Yes"; otherwise it will be "No".

Is exclusive

This property applies when the control is included as table column and the property Display as is Checkbox.

When enabled all the check-boxes displayed in the table are mutually exclusive. That is, a user can only select ONE box from a set of boxes in a table.

To ensure the user selected an option use expressions with a validation instead of setting the control as required (This will cause all the Yes/No controls in the tabled to be required when only one can be selected).

 

Display as example

 

Forms Components101

 

Is exclusive example

 

Forms Components224

 

Advanced tab

 

PROPERTY

DESCRIPTION

Default Value

Automatically sets a value when the form opens for the first time. As soon as a value is chosen by the user the default will be replaced. If the associated attribute is valued by means of an expression, the default value of the Yes/No control will be ignored.

Submit on change

This property is deprecated. We suggest using Actions and Validations.

When enabled, as the end user selects a value from the control, the entire form will refresh and execute all Actions, Validations and visibility rules, saving what has been entered.

 

note_pin

Clicking the Set to default value icon will reset the properties.

 

Example

 

In a Vacation Request Process when an employee requests vacations, he/she must read and accept the company's vacation policies. To allow the user to access accept or reject these policies a Yes/No control has to be inserted onto the Request form.

 

1. The first requirement is a Boolean attribute in your Data Model. We will create an attribute named Accept policies in the Process Entity.

 

 

Forms Components102

 

 

2. Drag and drop the Accept Policies attribute from the data model onto the Display area. The attribute is automatically interpreted as a Yes/No control.

 

Forms Components103

 

3. Save the Form and go to the Work Portal to test the control.

 

 

Forms Components104