<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Display questions in UI</title><link>https://community.appian.com/discussions/f/general/38644/display-questions-in-ui</link><description>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 
 
 Is this kind of use case exists in real time? 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Display questions in UI</title><link>https://community.appian.com/thread/146171?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 12:21:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:77db1a2b-3929-4564-8ada-368375e71c48</guid><dc:creator>ArcherBeckett</dc:creator><description>&lt;p&gt;Thank you so much for answering.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display questions in UI</title><link>https://community.appian.com/thread/146014?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 07:37:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:72996cf9-4f76-4060-b753-91897a1478fc</guid><dc:creator>gayatria0439</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;,&amp;nbsp;&lt;br /&gt;Yeah, we can achieve this by using the &amp;quot;Is user a member of this group&amp;quot; n &amp;quot;ShowWhen&amp;quot; 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.&lt;br data-start="307" data-end="310" /&gt;Example:&lt;br data-start="318" data-end="321" /&gt;Set1: {Q1, Q2, Q3, ... Qn}&lt;br data-start="347" data-end="350" /&gt;Set2: {Q1, Q2, Q3, ... Qn}&lt;br data-start="376" data-end="379" /&gt;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display questions in UI</title><link>https://community.appian.com/thread/146013?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 07:06:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ba49f90-9720-4c79-ac8f-21159576088f</guid><dc:creator>Konduru Chaitanya</dc:creator><description>[quote userid="236612" url="~/discussions/f/general/38644/display-questions-in-ui/146011"]I feel your answer is generic way of saving to DB, but is it the best practice?[/quote]
&lt;p&gt;Depends on the use case. If the question or the groups need to be updated time-time by a business user from a update process, then my solution will be very feasible. Many of us consider this as a best practice.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ex:&amp;nbsp;Consider a Survey or a review process that needs to be completed by employees who are in projects, there might be questions which are valid to few projects and few which are not. So this can change over a period of time and the manager is someone who would decide the questions, he should be able to make changes to these. So it should be implemented in such a way that the user is also able to add new questions or delete older question and add which groups will need to get this question in their form.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display questions in UI</title><link>https://community.appian.com/thread/146012?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 07:04:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee145595-31f3-46f0-b7c3-7631af2b7c84</guid><dc:creator>chandankumarp0002</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Is this kind of use case exists in real time? - Yes&lt;/li&gt;
&lt;li&gt;Is there any best practice/way for achieving this? - You can configure showWhen of the component displaying the questions to check and display the questions. Saving can be done normally and while retrieving the data back the questions values are saved based on the items displayed to the user.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display questions in UI</title><link>https://community.appian.com/thread/146011?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 07:02:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:47b48f38-dcff-4193-a98a-7891c27cc9a0</guid><dc:creator>pradeepb568219</dc:creator><description>&lt;p&gt;Thanks &amp;nbsp; for the reply. I feel your answer is generic way of saving to DB, but is it the best practice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display questions in UI</title><link>https://community.appian.com/thread/146010?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 06:55:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1bc700a1-dc43-488a-a754-ec0b055080d9</guid><dc:creator>Konduru Chaitanya</dc:creator><description>[quote userid="236612" url="~/discussions/f/general/38644/display-questions-in-ui"]Is this kind of use case exists in real time?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote userid="236612" url="~/discussions/f/general/38644/display-questions-in-ui"]Is there any best practice/way for achieving this?[/quote]
&lt;p&gt;Yes, You will have to use your data base to store the Reference questions and Reference Groups (All the groups). Then create a table which would store the Question and Group mapping. Use this data to build the UI.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>