Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: wording, grammar

...

Anchor
CreateBooleanQuestion
CreateBooleanQuestion
Create a Boolean Question

...

We assume It is assumed that you have a Question "Do you prefer an e-bike?" with two Answer Options "Yes" and "No". This Question can perfectly be converted into a Boolean Question.

...

After creating the Boolean Question the "yes" option has to be connected to product attributes. In this example, we describe the Simple Data Binding is described.

  1. We assume that Make sure the Question is already bound to a product attribute (in this case "Bike Type"). If you do not know how to bind an attribute to a Question, please look at the example in page Simple Mapping.
  2. Open the "yes" option properties dialog.
  3. Go to the "Data Binding and Connections" tab (see image below).

    Info

    Make sure that the product attribute "Bike Type" is visible below the label "Connected Product Attribute from data source:". Otherwise please return to step 1.


  4. Choose the attribute value "e-bike" from the selectable value from the combobox.
  5. After the selection the value is attached and the token "e-bike" is visible.
  6. You can add further values by repeating step 4 with other values.

...

Furthermore the Boolean Question can also be used in combination with the Answer Option Mapping Expression. With this mapping the "yes" option can be attached to a more complex combination of different product attributes. So this can be used for example for the Question "Are there babies or small children in your household?" in a washing machine advisor.

  1. We assume that Make sure the Question is already created and the Data Binding Mapping is set to Expression. If you do not know how to set this mapping, please look at the example in page Expression Mapping.
  2. Open the "yes" option properties dialog.
  3. Go to the "Data Binding and Connections" tab (see image below).
  4. Select the attribute "child_safety_lock" and set the corresponding value to "yes". That means that the washing machine should have a child safety lock.
  5. Add another expression by clicking on the "Add Expression" button.
  6. Select the attribute "capacity" and set the corresponding value to "6.5". Also make sure that the condition is set to ">=" (greater and equals than).

    Note

    This mathematical condition is only selectable if the attribute "capacity" has the type "Number" (see Data Attributes Table).


  7. Afterwards both attributes and their values are attached to the "yes" option.
  8. Of course you can add further expressions.

...