<?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>gridRowLayout conditionl contents</title><link>https://community.appian.com/discussions/f/user-interface/21932/gridrowlayout-conditionl-contents</link><description>Hi, 
 Is there any way to display textField/radioButtonField &amp;#39;s in gridRowLayout based on satisfying given condition ? I have a column, it can be of either dropdown or text field or radiobutton. Type of row has to be decided based on column header selection</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85953?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 11:46:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03cc7c7a-90ac-47a5-98df-be947d5319c3</guid><dc:creator>mounikam0001</dc:creator><description>&lt;p&gt;I&amp;nbsp;have given &amp;#39;showWhen&amp;#39; to all rows and added choose function to select only rows and it worked. Thank you !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85952?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 11:26:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0194686-b47f-4b5a-8662-a9174557ab16</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;As mentioned previously - if you&amp;#39;re conditionally hiding a component in a row using the &amp;#39;showWhen&amp;#39; attribute you&amp;nbsp;need to a) hide it for ALL rows and b) hide the corresponding header cell. If you&amp;#39;re trying to hide for one row and then not for another this will not work as ALL rows need to have the same number of components as there are header cells. An alternative is to simply conditionally replace the component you want to hide with, say, an empty, read-only a!textField()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85950?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 10:55:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a601a5d5-a11a-46b8-b271-f02706c4f36d</guid><dc:creator>mounikam0001</dc:creator><description>&lt;p&gt;Thank you so much&amp;nbsp;&lt;a href="/members/vimals"&gt;vimalkumars&lt;/a&gt;&amp;nbsp;for providing sample codes. Option B is exactly what I am in need of. I have modified it according and got my result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85941?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 22:19:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ff83992b-2afa-4862-9cb3-24f2451564de</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I&amp;#39;d suggest moving what you currently have in your contents to a separate rule. Then, I&amp;#39;d run a!forEach() across that rule to generate the correct number of columns in the grid. Since you use a!forEach() for both the configs and the contents, you should always end up with the same number of columns.&lt;/p&gt;
&lt;p&gt;Something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;contents: {
  a!forEach(
    items: local!gridQuestionsList.questionID,
    expression: rule!EX_SelectComponent(
      id: fv!item,
    )
  ),
  ...
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is similar to option 2 from the poster above, but I think having this in a separate rule can help you to more easily test the results and ensure it will work for each type of component.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85934?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 18:55:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d07652b-3aea-4164-aa98-70a888ba433d</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Mounika,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are looking for a way to show an interface to capture responses for a list of question, I would recommend interface &lt;strong&gt;&amp;quot;Option A&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Interface - Option A:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1632163740224v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Sample code&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!gridQuestionsList: {
    a!map(
      questionID: 1,
      type: &amp;quot;text box&amp;quot;,
      label: &amp;quot;Question 1&amp;quot;
    ),
    a!map(
      questionID: 1,
      type: &amp;quot;radio button&amp;quot;,
      label: &amp;quot;Question 2&amp;quot;
    ),
    a!map(
      questionID: 1,
      type: &amp;quot;dropdown&amp;quot;,
      label: &amp;quot;Question 3&amp;quot;
    )
  },
  {
    a!gridLayout(
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      headerCells: {
        a!gridLayoutHeaderCell(label: &amp;quot;Question&amp;quot;),
        a!gridLayoutHeaderCell(label: &amp;quot;Answer&amp;quot;),
        if(
          ri!isReadOnly = false(),
          a!gridLayoutHeaderCell(label: &amp;quot;&amp;quot;),
          {}
        )
      },
      columnConfigs: {
        a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: &amp;quot;3&amp;quot;),
        a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: &amp;quot;2&amp;quot;),
        a!gridLayoutColumnConfig(width: &amp;quot;NARROW&amp;quot;)
      },
      rows: {
        a!forEach(
          items: local!gridQuestionsList,
          expression: {
            a!gridRowLayout(contents:{
            a!richTextDisplayField(
              value: a!richTextItem(text: fv!item.label)
            ),
           choose(
             lookup({&amp;quot;text box&amp;quot;, &amp;quot;radio button&amp;quot;, &amp;quot;dropdown&amp;quot;},fv!item.type,1),
             a!textField(
               labelPosition: &amp;quot;COLLAPSED&amp;quot;,
               value: &amp;quot;&amp;quot;,
               /*saveInto: a!save(ri!answerList.answerValue, save!value),*/
               showWhen: fv!item.type = &amp;quot;text box&amp;quot;
             ),
             a!radioButtonField(
               value: &amp;quot;&amp;quot;,
               choiceLabels: { &amp;quot;False&amp;quot;, &amp;quot;True&amp;quot; },
               choiceValues: { false, true },
               /*saveInto: a!save(*/
                 /*local!gridQuestionsList.defaultAnswer,*/
                 /*save!value*/
               /*),*/
               showWhen: fv!item.type = &amp;quot;radio button&amp;quot;
             ),
             a!dropdownField(
               labelPosition: &amp;quot;COLLAPSED&amp;quot;,
               placeholder: &amp;quot;Please select one&amp;quot;,
               choiceLabels: {
                 &amp;quot;Consumer Credit&amp;quot;,
                 &amp;quot;Consumer Debit&amp;quot;,
                 &amp;quot;Prepaid&amp;quot;,
                 &amp;quot;Ecommerece&amp;quot;
               },
               choiceValues: {
                 &amp;quot;Consumer Credit&amp;quot;,
                 &amp;quot;Consumer Debit&amp;quot;,
                 &amp;quot;Prepaid&amp;quot;,
                 &amp;quot;Ecommerece&amp;quot;
               },
               value: &amp;quot;&amp;quot;,
               /*saveInto: a!save(ri!answerList.answerValue, save!value),*/
               showWhen: fv!item.type = &amp;quot;dropdown&amp;quot;,
               disabled: ri!isReadOnly=false()
             )
             
           ),
           if(
             ri!isReadOnly = false(),
             a!imageField(
               label: &amp;quot;delete &amp;quot; ,
               images: a!documentImage(
                 document: a!iconIndicator(&amp;quot;REMOVE&amp;quot;),
                 altText: &amp;quot;Remove Row&amp;quot;,
                 link: a!dynamicLink(
                   value: fv!index,
                   saveInto: {
                     a!save(
                       local!program,
                       remove(local!program, save!value)
                     )
                   }
                 )
               ),
               size: &amp;quot;ICON&amp;quot;
             ),
             {}
           )
          })}
        )
      },
      selectionSaveInto: {},
      validations: {},
      shadeAlternateRows: true
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;Interface Option B:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1632163931010v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sample code&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!questionID: { &amp;quot;230108&amp;quot; },
  local!gridQuestionsList: {
    a!map(
      questionID: 1,
      type: &amp;quot;text box&amp;quot;,
      label: &amp;quot;Question 1&amp;quot;
    ),
    a!map(
      questionID: 1,
      type: &amp;quot;radio button&amp;quot;,
      label: &amp;quot;Question 2&amp;quot;
    ),
    a!map(
      questionID: 1,
      type: &amp;quot;dropdown&amp;quot;,
      label: &amp;quot;Question 3&amp;quot;
    )
  },
  local!program: &amp;quot;test&amp;quot;,
  /* local!answerIndex:if(rule!GPO_APN_isEmpty(ri!answerList),null,wherecontains(ri!question.questionID, tointeger(ri!answerList.question.questionID))),
  local!questionType:lower(ri!question.type),
  local!columnscount:count(split(ri!question.defaultValue,&amp;quot;;&amp;quot;)),
  local!gridQuestions:split(ri!question.defaultValue, &amp;quot;;&amp;quot;),*/
  a!gridLayout(
    headerCells: {
      a!forEach(
        items: local!gridQuestionsList,
        expression: a!gridLayoutHeaderCell(label: fv!item.label)
      )
    },
    rows: a!gridRowLayout(
      contents: {
        a!forEach(
          items: local!gridQuestionsList,
          expression: {
            a!dropdownField(
              labelPosition: &amp;quot;COLLAPSED&amp;quot;,
              placeholder: &amp;quot;Please select one&amp;quot;,
              choiceLabels: {
                &amp;quot;Consumer Credit&amp;quot;,
                &amp;quot;Consumer Debit&amp;quot;,
                &amp;quot;Prepaid&amp;quot;,
                &amp;quot;Ecommerece&amp;quot;
              },
              choiceValues: {
                &amp;quot;Consumer Credit&amp;quot;,
                &amp;quot;Consumer Debit&amp;quot;,
                &amp;quot;Prepaid&amp;quot;,
                &amp;quot;Ecommerece&amp;quot;
              },
              value: &amp;quot;&amp;quot;,
              saveInto: a!save(ri!answerList.answerValue, save!value),
              showWhen: fv!item.type = &amp;quot;dropdown&amp;quot;,
              disabled: ri!isReadOnly=false()
            ),
            a!textField(
              labelPosition: &amp;quot;COLLAPSED&amp;quot;,
              value: &amp;quot;&amp;quot;,
              saveInto: a!save(ri!answerList.answerValue, save!value),
              showWhen: fv!item.type = &amp;quot;text box&amp;quot;
            ),
            a!radioButtonField(
              value: &amp;quot;&amp;quot;,
              choiceLabels: { &amp;quot;False&amp;quot;, &amp;quot;True&amp;quot; },
              choiceValues: { false, true },
              saveInto: a!save(
                local!gridQuestionsList.defaultAnswer,
                save!value
              ),
              showWhen: fv!item.type = &amp;quot;radio button&amp;quot;
            ),
            a!checkboxField(
              value: &amp;quot;&amp;quot;,
              choiceLabels: { &amp;quot;worst Appian&amp;quot;, &amp;quot;No Support&amp;quot; },
              choiceValues: { &amp;quot;worst Appian&amp;quot;, &amp;quot;No Support&amp;quot; },
              saveInto: a!save(
                local!gridQuestionsList.defaultAnswer,
                save!value
              ),
              showWhen: fv!item.type = &amp;quot;checkbox&amp;quot;
            )
          }

        )
      }
    ),
    addRowlink: if(
      ri!isReadOnly = false(),
      a!dynamicLink(
        label: &amp;quot;Add&amp;quot;,
        value: (startDate: today() + 1),
        saveInto: {
          a!save(
            local!program,
            append(local!program, save!value)
          )
        }
      ),
      {}
    ),
    rowHeader: 1
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000080;"&gt;Ensure you update the above-shared code with necessary best practices&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85933?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 17:56:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97dc3aaf-4125-40a6-92ed-24a33b7d8fbf</guid><dc:creator>mounikam0001</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
a!localVariables(
  local!questionID: {&amp;quot;230108&amp;quot;},
  local!gridQuestionsList:rule!GPO_quesDetailsInput(questionInputID: local!questionID),
  local!program:&amp;quot;test&amp;quot;,
 
 /* local!answerIndex:if(rule!GPO_APN_isEmpty(ri!answerList),null,wherecontains(ri!question.questionID, tointeger(ri!answerList.question.questionID))),
  local!questionType:lower(ri!question.type),
  local!columnscount:count(split(ri!question.defaultValue,&amp;quot;;&amp;quot;)),
  local!gridQuestions:split(ri!question.defaultValue, &amp;quot;;&amp;quot;),*/
  
  
  a!gridLayout(
    headerCells: {
         a!forEach(
          items: local!gridQuestionsList.questionID,
          expression: 
            a!localVariables(
              local!list: rule!GPO_questionDetails(questionID: fv!item),
              a!gridLayoutHeaderCell(label: local!list.label)
            )),
        if(not(rule!APN_isTrue(ri!isReadOnly)),a!gridLayoutHeaderCell(label: &amp;quot;&amp;quot;),{})
     },
    rows: a!forEach(
      items: local!gridQuestionsList,
      expression:
        
      a!gridRowLayout(
        contents: {
          a!dropdownField(
            labelPosition: &amp;quot;COLLAPSED&amp;quot;,
            placeholder: &amp;quot;Please select one&amp;quot;,
            choiceLabels: {&amp;quot;Consumer Credit&amp;quot;,&amp;quot;Consumer Debit&amp;quot;,&amp;quot;Prepaid&amp;quot;,&amp;quot;Ecommerece&amp;quot;},
            choiceValues: {&amp;quot;Consumer Credit&amp;quot;,&amp;quot;Consumer Debit&amp;quot;,&amp;quot;Prepaid&amp;quot;,&amp;quot;Ecommerece&amp;quot;},
            value:&amp;quot;&amp;quot;,
            saveInto: a!save(ri!answerList.answerValue,save!value),
            showWhen: fv!item.type = &amp;quot;grid&amp;quot;,
            disabled: rule!APN_isTrue(ri!isReadOnly)
          ),
          a!textField(
            labelPosition: &amp;quot;COLLAPSED&amp;quot;,
            value: &amp;quot;&amp;quot;,
            saveInto: a!save(ri!answerList.answerValue,save!value),
            required: not(rule!APN_isTrue(ri!isReadOnly)),
            readOnly: rule!APN_isTrue(ri!isReadOnly),
            showWhen: fv!item.type = &amp;quot;text box&amp;quot;
 
          ),
         
          a!radioButtonField(
            value: &amp;quot;&amp;quot;,
            choiceLabels: {&amp;quot;False&amp;quot;, &amp;quot;True&amp;quot;},
            choiceValues: {false, true},
            saveInto: a!save(local!gridQuestionsList.defaultAnswer,save!value),
            showWhen: fv!item.type = &amp;quot;radio button&amp;quot;
          
          ),
          a!checkboxField(
            value:&amp;quot;&amp;quot;,
            choiceLabels: {&amp;quot;worst Appian&amp;quot;, &amp;quot;No Support&amp;quot;},
            choiceValues: {&amp;quot;worst Appian&amp;quot;, &amp;quot;No Support&amp;quot;},
            saveInto: a!save(local!gridQuestionsList.defaultAnswer,save!value),
            showWhen: fv!item.type = &amp;quot;checkbox&amp;quot;
          ),
         a!imageField(
            label: &amp;quot;delete &amp;quot; &amp;amp; fv!index,
            images: a!documentImage(
              document: a!iconIndicator(&amp;quot;REMOVE&amp;quot;),
              altText: &amp;quot;Remove Row&amp;quot;,
              link: a!dynamicLink(
                value: fv!index,
                saveInto: {
                  a!save(local!program, remove(local!program, save!value))
                }
              )
            ),
            size: &amp;quot;ICON&amp;quot;
          )
        }
      )  
      
    ),
    addRowlink: if(
      not(rule!APN_isTrue(ri!isReadOnly)),
      a!dynamicLink(
        label: &amp;quot;Add&amp;quot;,
        value: (
          startDate: today() + 1
        ),
        saveInto: {
          a!save(local!program, append(local!program, save!value))
        }
      ),
      {}
    ),
    rowHeader: 1
  )
)
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thanks @Peter Lewis. Here is my code, am still stuck :(&lt;/p&gt;
&lt;p&gt;What I want to achieve - Columns can be of any number (2 col sometimes/3 sometimes/4sometimes) and of any type (radio/textbox/dropdown), both of their selection happens dynamically by client. So accordingly rows shows up.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85932?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 17:17:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a51feba-0ab6-41ad-b6e6-fe2e2ab6be22</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;If you still aren&amp;#39;t getting it to work, can you post the full code for your grid?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85910?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 13:11:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9484bb99-d579-4841-8421-25a6010159e5</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;The error message is clear in telling you what&amp;#39;s wrong. You have to dine how many columns you&amp;#39;re expecting in your table (using the headercells attribute) and every row you generate using your data needs to have the same number of components to lay them across the defined table. So if you want to hide a specific component, that&amp;#39;ll mean one less component for the defined table, so you either replace it with, say, an empty, rad-only text field, or you reduce the number of headerCells using the same technique, by setting one headerCell&amp;#39;s &amp;#39;showWhen&amp;#39; to false&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85909?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 13:05:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:793d913e-1ed6-40cc-9138-96e2674e2fd6</guid><dc:creator>mounikam0001</dc:creator><description>&lt;p&gt;I got your point. What I meant to say is that, after modifying&amp;nbsp;radiobutton component to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;showWhen: fv!item.type = &amp;quot;radio button&amp;quot;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;am getting that error even though the condition is true.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85907?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 12:59:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fa05941-05c7-4625-a739-bc1bdfec17cc</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Yes. If you want to hide/show a component in a row you need to ensure the set of header cells matches the number of components in your row. So the same rule could be used on the &amp;#39;showWhen&amp;#39; attribute on the relevant header cell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85906?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 12:17:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:43f366e9-4e6a-431c-81b2-db892097a683</guid><dc:creator>mounikam0001</dc:creator><description>&lt;p&gt;Thanks &lt;a href="/members/stewart.burchell"&gt;Stewart Burchell&lt;/a&gt;.&lt;br /&gt;When I modify as per your suggestion, am getting below error.&lt;/p&gt;
&lt;p&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function a!gridLayout [line 13]: A grid layout component [label=""] has an invalid value for &amp;quot;rows&amp;quot;. Every row layout must have the same number of components and it must match the number of header cells. The row at index 1 has 3 component(s). Expected: 4 component(s).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: gridRowLayout conditionl contents</title><link>https://community.appian.com/thread/85905?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 11:42:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6243eec-6307-4304-9c60-c0c6fe09baf3</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;the &amp;#39;required&amp;#39; attribute simply forces the user to enter a value. If you want the component to be invisible based upon some criteria then you should use the &amp;#39;showWhen&amp;#39; attribute which takes a Boolean value.&lt;/p&gt;
&lt;p&gt;Note also that you do not need to construct your code as:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(fv!item.type = &amp;quot;radio button&amp;quot;,true(),false())&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;...since just having:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;fv!item.type = &amp;quot;radio button&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;will return either &amp;quot;true&amp;quot; or &amp;quot;false&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>