<?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>Group-Level conditional visibility for fragment configuration fields</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123506522" />
  <subtitle>Group-Level conditional visibility for fragment configuration fields</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=123506522</id>
  <updated>2026-04-04T15:23:09Z</updated>
  <dc:date>2026-04-04T15:23:09Z</dc:date>
  <entry>
    <title>RE: Group-Level conditional visibility for fragment configuration fields</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123527766" />
    <author>
      <name>Rita Schaff</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123527766</id>
    <updated>2025-07-31T13:59:43Z</updated>
    <published>2025-07-31T13:59:42Z</published>
    <summary type="html">&lt;p&gt;Hi Jérémy,&lt;/p&gt;
&lt;p&gt;I've opened this feature request for you:&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://liferay.atlassian.net/browse/LPD-62093"&gt;[LPD-62093]
    Group-Level conditional visibility for fragment configuration fields&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Rita Schaff</dc:creator>
    <dc:date>2025-07-31T13:59:42Z</dc:date>
  </entry>
  <entry>
    <title>Group-Level conditional visibility for fragment configuration fields</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123506521" />
    <author>
      <name>Jérémy Conrad</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=123506521</id>
    <updated>2025-07-24T16:09:43Z</updated>
    <published>2025-07-24T11:35:23Z</published>
    <summary type="html">&lt;p&gt;Since Liferay DXP version 2025.Q2, it is now possible to configure
    &lt;strong&gt;&amp;quot;Conditional Field Visibility&amp;quot;&lt;/strong&gt; in a
  fragment's configuration JSON: LPD-46393&lt;br&gt;
  &lt;a href="https://liferay.atlassian.net/browse/LPD-46393" target="_new"&gt;https://liferay.atlassian.net/browse/LPD-46393&lt;/a&gt;
  &lt;br&gt; This new feature is very useful, as it helps avoid cluttering the
  configuration screen when fields are interdependent.&lt;br&gt;
  &lt;a
    href="https://learn.liferay.com/web/guest/w/dxp/development/developing-page-fragments/reference/fragment-configuration-types-reference#conditional-field-visibility-configuration" target="_new"&gt;https://learn.liferay.com/web/guest/w/dxp/development/developing-page-fragments/reference/fragment-configuration-types-reference#conditional-field-visibility-configuration&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;However, there are still several drawbacks:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;If &lt;em&gt;x&lt;/em&gt; fields depend on the value of a single field, you
      have to configure each of those &lt;em&gt;x&lt;/em&gt; fields individually by
      adding &lt;code&gt;&amp;quot;dependency&amp;quot;: { [...] }&lt;/code&gt; every time.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;If a field’s visibility depends on another, both fields must be
      present in the same &lt;code&gt;&amp;quot;fields&amp;quot;&lt;/code&gt; array.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;What we would like is to be able to manage the visibility of a group
  of fields at the &lt;code&gt;&amp;quot;fields&amp;quot;&lt;/code&gt; level — meaning the
  &lt;code&gt;dependency&lt;/code&gt; property would be at the same level as
  &lt;code&gt;&amp;quot;label&amp;quot;&lt;/code&gt;, and not only inside each individual field.&lt;/p&gt;
&lt;p&gt;Exemple :&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;{
	&amp;quot;fieldSets&amp;quot;: [
		{
			&amp;quot;fields&amp;quot;: [
			  {
				&amp;quot;name&amp;quot;: &amp;quot;checkbox1&amp;quot;,
				&amp;quot;type&amp;quot;: &amp;quot;checkbox&amp;quot;,				 
				...
              },
		      {
				&amp;quot;name&amp;quot;: &amp;quot;checkbox2&amp;quot;,
				&amp;quot;type&amp;quot;: &amp;quot;checkbox&amp;quot;,				 
				...
              }			  
			]	
        },		
		{
			&amp;quot;fields&amp;quot;: [
			  { [...] },
			  { [...] },
			  { [...] },
			  { [...] }
			],
            &amp;quot;label&amp;quot;: &amp;quot;Group 1&amp;quot;,
            &amp;quot;dependency&amp;quot;: {
				&amp;quot;checkbox1&amp;quot;: {
					&amp;quot;type&amp;quot;: &amp;quot;equal&amp;quot;,
					&amp;quot;value&amp;quot;: &amp;quot;true&amp;quot;
				}
            }			
        },		
		{
			&amp;quot;fields&amp;quot;: [
			  { [...] },
			  { [...] },
			  { [...] },
			  { [...] }
			],
            &amp;quot;label&amp;quot;: &amp;quot;Group 2&amp;quot;,
            &amp;quot;dependency&amp;quot;: {
				&amp;quot;checkbox2&amp;quot;: {
					&amp;quot;type&amp;quot;: &amp;quot;equal&amp;quot;,
					&amp;quot;value&amp;quot;: &amp;quot;true&amp;quot;
				}
            }			
        }
      ]
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is that something that could be done?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;</summary>
    <dc:creator>Jérémy Conrad</dc:creator>
    <dc:date>2025-07-24T11:35:23Z</dc:date>
  </entry>
</feed>
