Form Container: dedicated form fragment (user picker) for Assignee object field

What is the problem you are trying to solve?

Liferay Objects offer the Assignee field type, but there is no form fragment for it: the mapping table in the Using Form Fragments documentation does not list the type, and the Form Container falls back to a generic Text Input. There is no way to select a user; the assignee has to be typed as plain text. This
makes the field type unusable on page-based object forms, while the auto-generated Object Entry edit form in the admin UI renders a proper user picker for the same field.

An object field type is only complete when it can be used in forms. Every field type the product offers should come with a corresponding form fragment.

Liferay Support has confirmed the gap (support ticket LRHC-154747; the internal ticket LPD-75623 apparently covered the same request but was closed without a visible resolution). Related discussion: Form Fragment for Assignee Field – User Picker instead of Text Input?

What is your project about? (e. g. Intranet, Partner Portal, Enterprise Website, etc)

A B2B customer portal (self-service and commerce) built on Liferay DXP Cloud. We model business data with Liferay Objects and build the user-facing forms with the Form Container fragment; several of these forms assign an entry to a responsible user.

What is your proposed solution? (optional)

A form fragment for the Assignee field type, usable within the Form Container, that renders the same user picker as the auto-generated Object Entry edit form.

4 Likes