Legacy Knowledge Base
Published Jul. 2, 2025

User shouldn't be able to select more than one category if Allow Multiple Categories is toggled to No

Written By

Amit Tiwari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

Steps To reproduce
1. Go to Site Content -> Categorization -> Categories
2. Add a new Vocabulary called Test
3. Toggle Allow Multiple categories to No. Click on Save.
4. Add 3 categories in Test - A, B, C
5. Create a new Basic web content
6. Under Metadata > Search category, click on Select
8. This opens a new popup window which allows user to select the categories
9. First select A, and then click on B.
10. Click on Add
Result: You will see both categories for the article.

11. Click on Publish

Result: Liferay will throw a UI warning saying that you cannot select more than one category.

prevent-multiple-category.jpg

Environment

  • Liferay DXP 7.2

Resolution

  • It's a known issue and resolved in Liferay DXP 7.2 fix pack 5.
  • If the hotfix is required for this issue, please create a support ticket requesting the hotfix by attaching the patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to install this hotfix in the respective environment.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base