Display questions in UI

Certified Lead Developer

Hi ,

Recently i came across an interview question like how you will save and display different questions for different group of users in UI ? So have two doubts regarding this question, as follows

  1. Is this kind of use case exists in real time?
  2. Is there any best practice/way for achieving this?

Requesting suggestions from everyone.

Thanks in Advance,

Pradeep

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Hi  , 
    Yeah, we can achieve this by using the "Is user a member of this group" n "ShowWhen" conditions. First, we need to create a record or a set of questions that we want to display for a particular group. Then, we need to display the set according to the groups.
    Example:
    Set1: {Q1, Q2, Q3, ... Qn}
    Set2: {Q1, Q2, Q3, ... Qn}
    Group1 will see the Set1 questions, and Group2 will see the Set2 questions. Similarly, you need to set this up accordingly. For a better approach, as Chaitanya suggested, to save or update the questions, we would need a database to store them.

Reply
  • 0
    Certified Associate Developer

    Hi  , 
    Yeah, we can achieve this by using the "Is user a member of this group" n "ShowWhen" conditions. First, we need to create a record or a set of questions that we want to display for a particular group. Then, we need to display the set according to the groups.
    Example:
    Set1: {Q1, Q2, Q3, ... Qn}
    Set2: {Q1, Q2, Q3, ... Qn}
    Group1 will see the Set1 questions, and Group2 will see the Set2 questions. Similarly, you need to set this up accordingly. For a better approach, as Chaitanya suggested, to save or update the questions, we would need a database to store them.

Children