<?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>field creation based upon data type selected</title><link>https://community.appian.com/discussions/f/rules/12868/field-creation-based-upon-data-type-selected</link><description>Hi Everyone, 
 i am doing a POC, where the requirement is like admin will select Data Type from dropdown in the interface and on click of preview button, one new interface will open that will display selected data type fields of admin interface. for example</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: field creation based upon data type selected</title><link>https://community.appian.com/thread/57768?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 11:10:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a28634f1-39d6-4c96-92bc-7d89742aa83c</guid><dc:creator>vikrams192</dc:creator><description>Thank you Abhay for your help.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: field creation based upon data type selected</title><link>https://community.appian.com/thread/57767?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 11:10:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a690739f-b529-4ce9-899f-b97a6b421ba7</guid><dc:creator>vikrams192</dc:creator><description>Thank you Ryland for your help.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: field creation based upon data type selected</title><link>https://community.appian.com/thread/57748?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 06:43:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61fa55aa-0623-4909-b7d2-2854e55f97d4</guid><dc:creator>Abhay Giri</dc:creator><description>&lt;p&gt;Hi Vikram,&lt;/p&gt;
&lt;p&gt;I have one question : &amp;quot;what you want to achieve by implementing this?&amp;quot; Are you trying to create interface at runtime?&lt;/p&gt;
&lt;p&gt;If you can explore your requirement then it will be easy to people to provide a good solution here.&lt;/p&gt;
&lt;p&gt;I am agree with Ryland Atkins (rylanda) &amp;nbsp;way, you need to define set of different type of data input and based on selection you &amp;nbsp;will be able to see input types. But according to his code, once you will select other data type , first one will disappear.&lt;/p&gt;
&lt;p&gt;just look the quick apps :&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/18.2/Quick_Apps_Designer.html"&gt;https://docs.appian.com/suite/help/18.2/Quick_Apps_Designer.html&lt;/a&gt;&amp;nbsp;may be it will be use full for you.&lt;/p&gt;
&lt;p&gt;Kindly let me know weather it helps you or you have still some doubt.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Abhay&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: field creation based upon data type selected</title><link>https://community.appian.com/thread/57727?ContentTypeID=1</link><pubDate>Mon, 09 Jul 2018 17:04:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74eb547c-b5b6-4e1e-ae29-d618dad8e441</guid><dc:creator>Ryland Atkins</dc:creator><description>Hey vikram,&lt;br /&gt;
&lt;br /&gt;
I looked into this and I think I understand what you&amp;#39;re asking. Here&amp;#39;s some boilerplate code that does what you&amp;#39;re looking for.&lt;br /&gt;
&lt;br /&gt;
a!formLayout(&lt;br /&gt;
  label: &amp;quot;Boilerplate&amp;quot;,&lt;br /&gt;
  contents: {&lt;br /&gt;
    a!sectionLayout(&lt;br /&gt;
      contents: {&lt;br /&gt;
        a!dropdownField(&lt;br /&gt;
          label: &amp;quot;Dropdown&amp;quot;,&lt;br /&gt;
          labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt;
          placeholderLabel: &amp;quot;--- Select a Value ---&amp;quot;,&lt;br /&gt;
          choiceLabels: {&amp;quot;Integer&amp;quot;, &amp;quot;Text&amp;quot;, &amp;quot;Date&amp;quot;},&lt;br /&gt;
          choiceValues: {&amp;quot;Integer&amp;quot;, &amp;quot;Text&amp;quot;, &amp;quot;Date&amp;quot;},&lt;br /&gt;
          value: ri!dataType,&lt;br /&gt;
          saveInto: ri!dataType&lt;br /&gt;
        )&lt;br /&gt;
      }&lt;br /&gt;
    ),&lt;br /&gt;
    a!sectionLayout(&lt;br /&gt;
      contents: {&lt;br /&gt;
        a!integerField(&lt;br /&gt;
          label: &amp;quot;Integer&amp;quot;,&lt;br /&gt;
          showWhen: ri!dataType = &amp;quot;Integer&amp;quot;&lt;br /&gt;
        ),&lt;br /&gt;
        a!textField(&lt;br /&gt;
          label: &amp;quot;Text&amp;quot;,&lt;br /&gt;
          showWhen: ri!dataType = &amp;quot;Text&amp;quot;&lt;br /&gt;
        ),&lt;br /&gt;
        a!dateField(&lt;br /&gt;
          label: &amp;quot;Date&amp;quot;,&lt;br /&gt;
          showWhen: ri!dataType = &amp;quot;Date&amp;quot;&lt;br /&gt;
        )    &lt;br /&gt;
      }&lt;br /&gt;
    )&lt;br /&gt;
  }&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you select any of the choices in the dropdown, the corresponding fields will appear and disappear as necessary.&lt;br /&gt;
&lt;br /&gt;
Hope this helps!&lt;br /&gt;
&lt;br /&gt;
Best,&lt;br /&gt;
Ryland&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>