Pass Alert Fail ############### The Pass Alert Fail control in VAS allows us to give the user the ability to quickly response to a long list of question with "pass" "alert" or "fail". Often, we wish to display the results of each question in the cell of a table, with an icon, and the cell background set to some colour. **Control** .. image:: pass-alert-fail-control.png :align: center :width: 600 **Template** .. image:: pass-alert-fail-template.png :align: center :width: 600 **Output in report** .. image:: pass-alert-fail-report.png :align: center :width: 600 Concept ======= When fill in the pass alert fail control in the form, and change the result, VAS will actually save one of the following values: - Pass = 1 - Alert = 0 - Fail = -1 The module will check this value to determine what it should do, i.e. do nothing, or draw an icon and change the cell background. Syntax ====== The module accepts two arguments. .. code-block :pafitem 00b050:1 ^ ^ Color ----- The first argument is the color of the cell. Value ----- The second argument is the value that the triggers the action of the module i.e. if the result of the pass alert fail item is the same as this argument, then the module will change the background color of the cell, and render the icon.