<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>It is possible to create a dynamic lists in portlet configuration</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122702983" />
  <subtitle>It is possible to create a dynamic lists in portlet configuration</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122702983</id>
  <updated>2026-05-06T23:40:10Z</updated>
  <dc:date>2026-05-06T23:40:10Z</dc:date>
  <entry>
    <title>It is possible to create a dynamic lists in portlet configuration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122702982" />
    <author>
      <name>Mati Szuti</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122702982</id>
    <updated>2024-07-16T12:49:15Z</updated>
    <published>2024-06-05T13:55:57Z</published>
    <summary type="html">&lt;p&gt;I created a react portlet via liferay-npm-bundler, deployed in
  Liferay 7.3.5 -&amp;gt; working&lt;/p&gt;
&lt;p&gt;Now I created a configuration.json file in features localization,
  then deployed -&amp;gt; working:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-javascript"&gt;{
  "system": {
    "category": "third-party",
    "name": "SAMPLE CONFIG",
    "fields": {
      "a-number": {
        "type": "number",
        "name": "A number",
        "description": "An integer number",
        "default": "42"
      },
      "a-string": {
        "type": "string",
        "name": "A string",
        "description": "An arbitrary length string",
        "default": "this is a string"
      },
      "a-password": {
        "type": "password",
        "name": "A password",
        "description": "A secret string",
        "default": "s3.cr3t"
      },
      "a-boolean": {
        "type": "boolean",
        "name": "A boolean",
        "description": "A true|false value",
        "default": true
      },
      "an-option": {
        "type": "string",
        "name": "An option",
        "description": "A restricted values option",
        "required": true,
        "default": "A",
        "options": {
          "A": "Option a",
          "B": "Option b"
        }
      }
    }
  },
  "portletInstance": {
    "name": "Widget configuration",
    "fields": {
      "a-float": {
        "type": "float",
        "name": "A float",
        "description": "A floating point number",
        "default": "1.1"
      }
    }
  }
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But I have a question is it possible to create a dynamic more complex
  list in this configurations, like I have a SELECT1 field -&amp;gt; I grab
  values from API -&amp;gt; Then I have a SELECT2 field that API call rely
  on choosed value from SELECT1?&lt;/p&gt;
&lt;p&gt;If no, how is the best way to do it&lt;/p&gt;
&lt;p&gt;I will be grateful for your answers&lt;/p&gt;</summary>
    <dc:creator>Mati Szuti</dc:creator>
    <dc:date>2024-06-05T13:55:57Z</dc:date>
  </entry>
</feed>
