Controlling Mandatory of Survey question based on other Survey question in same Survey

anubhavritolia
Giga Sage

Hi All,

 

In same Survey/Assessment. if we want to control the mandatory of a particular survey/assessment question based on the value selected in another survey/assessment questions, is it possible and if yes, how can we do it?

 

For Example, If I select Value as "India" for any Questions like "What is your Country?", I want that another Question "Aadhar Number" should become Mandatory. Else it should become non-mandatory.

 

NOTE: It should be visible always so not looking for visibility of it.

 

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hi @anubhavritolia 

I think its not possible.

 

What you can try, two have to fields for dependency, lets say if user selects India - show field1 which mandatory else field2 which is not mandatory.

 

Let me know if this works out.

 

 

View solution in original post

8 REPLIES 8

Harish KM
Kilo Patron

Hi you can look for below work around to make mandatory. Refer screenshot to make mandatory and depends on another question and value

HarishKM_4-1701933252386.png

 

The survey shows like this below

HarishKM_1-1701932973238.png

When I select Yes. Additional question is shown with Mandatory

HarishKM_3-1701933162494.png

 

 

@Harish KM 

 

This works on for visibility. As I mentioned, we are not looking for visibility. We are looking for Mandatory to be based on condition and not always.

 

HI @anubhavritolia I dont think that works but however the user response are saved/stored in asmt_assessment_instance_question table. You could try scripting this table and get the value here but

I am not sure whether this will work on Survey Page but will work at backend.
 

 

HarishKM_1-1701943482152.png

 

 

@Harish KM 

 

Thanks for the response. But this is not according to the requirement.