Skip to main content

Mandatory Boolean parameter

Sometimes you may need to make sure that the user sets a Boolean parameter to the True value (checks a checkbox or switches a toggle to Yes) before proceeding to request the offer. Typical examples of this checkbox use are agreeing to the Terms and conditions or a confirmation of having read an important document related to the offer.

Note that while the term mandatory usually means 'must have a value', in this context mandatory means 'must be set to True'.

Example: A checkbox to confirm having read a linked document

Let's consider an offer for ordering a company car in accordance with an existing company car policy. The requestor is obliged to read a linked Company car policy document before proceeding to submit the order.

  1. Make the Company car policy document available as a hyperlink parameter of the offer.

  2. Create a Boolean parameter of the checkbox type. Set its default value to Unchecked.

  3. Set Checkbox must be checked to True and use the tooltip fields to provide proper guidance.

    44_MustBeChecked_Ex1.png
  4. With the new Boolean parameter saved, rearrange the parameters of the offer so that the Boolean parameter follows immediately after the related hyperlink parameter.

    44_MustBeChecked_Ex2.png
  5. Check the result.

    44_MustBeChecked_Ex3.png