Conditional Visibility

Items in Ambifi can be made conditionally visiible to only show in certain scenarios. This can be very useful for making procedures that can change based on certain options.


Making an Item Conditionally Visible

The image below shows where to select the Conditional Visibility checkbox. Checking this box will bring up the logic editor that will allow you to choose when the item shows and when it does not.

Placeholder

Read below to see the different options available to dictate the logic in the conditional visibility editor.

Visibility with Yes/No Item

A great way to set conditional visibility is based on the Yes/No item type.

In the example to the right, a picture is shown or not shown based on the user's choice on the Yes/No item. Play around with it to see if this is what you are looking for.


Yes/No Conditional Visibility

First, make the Yes/No item and give it a unique ID. For more information on how to set an ID, see here.

Then create the items you would like to be shown for each option, Yes or No. Make each item conditionally visible as shown above. Now, as shown below, select the ID for the Yes/No buton that you set as the variable name. Then select equals from the dropdown. Finally, type either "yes" or "no" for the values in the third box.

Yes No options

This will make the current item conditionally visible based on the user's choice of Yes or No on the item we created. For more information on the types of comparators, click here.

Visibility with Picker Item

This is a simple example of how user input in the form of multiple choice can questions can be verified using conditional visibility.

A great way to set conditional visibility is based on the Yes/No item type.

In the example to the right, a picture is shown or not shown based on the user's choice on the Yes/No item. Play around with it to see if this is what you are looking for.

Making the choice item

  1. Select the first checkbox item and change its type to Single Choice
  2. In the label one section type ### Question 1
  3. In the label two section, enter a multiple choice question (for example: What is the state bird of New Jersey?)
  4. Then, give it a unique ID (under advanced options) this will be important in order to reference this item later

Figure 1. Making the labels
Figure 2. Setting an ID

Setting choices

  1. Navigate to the Single Choice Item settings section
  2. Set 4 choices by entering labels (which will be shown to the user) and values (which we will reference)
  3. Press add after setting each item

Figure 3. Creating choices

Verifying Answers

  1. Select the first check item and give it the label "Correct!"
  2. Scroll down to the basic options tab and check Conditionally Visible
  3. Follow the image below and select the ID of the question, followed by "equals", followed by the value name of the correct answer

Figure 4. Correct answer

Verifying Incorrect Choices

  1. Then select the second check item and give it the label "incorrect!"
  2. Scroll down to the basic options tab and check Conditionally Visible
  3. This time, select the ID of the question again but follow it with "contains one of"
  4. Then, list the values of the incorrect answers separated by commas (with no spaces!)

Figure 5. Incorrect Answers
Contact
Contact

Need help or have questions?
support@ambifi.com

Want to learn more? Let's get in touch!
+1 (800) 290-6515 sales@ambifi.com