<?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>Dropdown with a create new button</title><link>https://community.appian.com/discussions/f/user-interface/38547/dropdown-with-a-create-new-button</link><description>Hi, Can I have a button inside of a dropdown? 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dropdown with a create new button</title><link>https://community.appian.com/thread/145486?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 08:58:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4cb7352-0ec6-4ea6-a119-4edf2d83c1d6</guid><dc:creator>daisyMSingh</dc:creator><description>&lt;p&gt;I agree .&lt;br /&gt;Their is always a way around which we customize in Appian.&lt;br /&gt;if you could specify your use case it would help more in better solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown with a create new button</title><link>https://community.appian.com/thread/145465?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2025 14:01:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb8a49bc-a8dd-4c1f-b25c-c05ae7b23628</guid><dc:creator>Zakary Melvin</dc:creator><description>&lt;p&gt;I agree with &lt;a href="/members/andrewh6762"&gt;Andrew Hickingbotham&lt;/a&gt;&amp;nbsp;&amp;nbsp;that a button inside a dropdown isn&amp;#39;t possible, but you could always use the last option to mock this behavior.&amp;nbsp; &lt;span&gt;In my opinion this isn&amp;#39;t the best approach, but c&lt;/span&gt;heck the code below for a quick example.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  
  local!existingProjects: a!forEach(
    items: enumerate(3)+1,
    expression: {
      id: fv!index,
      projectName: &amp;quot;project &amp;quot; &amp;amp; fv!item,
      description: repeat(fv!index, &amp;quot;words and &amp;quot;)
    }
  ),
  
  local!dropdownOptions: append(
    local!existingProjects.projectName,
    &amp;quot;Create New&amp;quot;
  ),
  local!a: length(local!existingProjects)+1,
  local!selection,
  
  
  {
    a!dropdownField(
      label: &amp;quot;Project: &amp;quot;,
      choiceValues: local!dropdownOptions,
      choiceLabels: local!dropdownOptions,
      value: local!selection,
      saveInto: {
        local!selection,
        a!save(
          local!existingProjects,
          if(
            save!value = &amp;quot;Create New&amp;quot;,
            append(
              local!existingProjects,
              {
                id: length(local!existingProjects)+1,
                projectName: &amp;quot;project &amp;quot; &amp;amp; length(local!existingProjects)+1
              }
            ),
            local!existingProjects
          )
        )
      },
      placeholder: &amp;quot;select project&amp;quot;
    ),
    
    a!gridField(
      label: &amp;quot;Current Projects&amp;quot;,
      data: local!existingProjects,
      columns: {
        a!gridColumn(
          label: &amp;quot;ID&amp;quot;,
          sortField: &amp;quot;id&amp;quot;,
          value: fv!row.id
        ),
        a!gridColumn(
          label: &amp;quot;Project Name&amp;quot;,
          sortField: &amp;quot;projectName&amp;quot;,
          value: fv!row.projectName
        ),
        a!gridColumn(
          label: &amp;quot;Description&amp;quot;,
          sortField: &amp;quot;description&amp;quot;,
          value: fv!row.description
        ),
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You may want to check out&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/24.4/Editable_Grid_Component.html"&gt;Editable Grid Component&lt;/a&gt;&amp;nbsp;as an alternate approach.&amp;nbsp; Appian even has a&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/24.4/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html"&gt;recipe&lt;/a&gt;&amp;nbsp;showing how to configure&amp;nbsp;adding new rows/records to the gridLayout.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown with a create new button</title><link>https://community.appian.com/thread/145457?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2025 07:30:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b0ec3f2-8f75-41bb-8b98-03b1ad7c5687</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not see why you would need a button inside a dropdown for this. You could add this as the last option, and then make your UI react on this in a way the user can create a new item. Should not be much of a challenge.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dropdown with a create new button</title><link>https://community.appian.com/thread/145455?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2025 00:12:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a2a2993-4358-4300-8183-f9ff495fe044</guid><dc:creator>Andrew Hickingbotham</dc:creator><description>&lt;p&gt;No, this isn&amp;#39;t possible.&lt;/p&gt;
&lt;p&gt;Did you want to further explore what you are trying to do or is it enough just knowing if a dropdown can have a separate button like you&amp;#39;ve modelled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>