The CreatorCon Call for Content is officially open! Get started here.

How to Keep Dynamic Questions Hidden when Selected as Mandatory?

vanessagrat
Tera Contributor

Hello,

 

I am creating a catalog item that has questions dependent on other question's answers to populate. The questions that populate are meant to only show when their condition is met but they are showing all the time since they need to be made mandatory. 

In the screenshot, when One Time is selected, the three questions should be hidden but they always show regardless of selection.

vanessagrat_1-1759435004676.png

 

 

Any help on getting the dynamic, mandatory questions to show only when their condition is met?

Thank you!

2 REPLIES 2

Rafael Batistot
Kilo Patron

M Iftikhar
Mega Sage

Hi @vanessagrat,

To achieve the desired functionality of showing or hiding questions based on the selection of "One Time", please follow the steps below:

1. Create a Catalog UI Policy with the following configuration:

  • Name: Show/Hide Variables based on One Time Selection
  • Short Description: Show/Hide questions based on the "One Time" selection
  • Condition: is_this_a_one_time_or_ongoing_assignment is One Time
  • On Load: Checked (True)
  • Reverse If False: Checked (True)

MIftikhar_0-1759441265782.png

 

2. Create UI Policy Actions for the following variables:

  • what_is_the_due_date_needed
    • Mandatory: True
    • Visible: True
  • is_a_completion_due_date_needed
    • Mandatory: True
    • Visible: True
  • what_is_the_desired_date_of_assignment
    • Mandatory: True
    • Visible: True

MIftikhar_1-1759441305198.png

 

This will ensure that the questions are visible when the condition is_this_a_one_time_or_ongoing_assignment is One Time is selected, and the fields are hidden when the condition is not met.

 

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.