RE: Different user interface for users if a birth date has not been set

Jamie Sammons, modified 3 Years ago. New Member Post: 1 Join Date: 4/7/22 Recent Posts

Hello,

we are experiencing a weird bug: If a user has not set a birth date, the user interface when trying to edit a user looks completely different as shown in the screenshots (upper: with an empty birth date, lower: with birth day set):


 

Birth date is disabled in instance settings. Unfortunately we cannot force users to set a birth date.

Thank you for any suggestions on how to fix this!

Lee Jordan, modified 3 Years ago. Expert Posts: 449 Join Date: 5/26/15 Recent Posts

As a workaround if you have an admin theme I would try enabling birthday and just hiding what you don't want showed by using CSS in the theme. Or try using the portal properties below.

This need just isn't a priority for them, I don't think they are taking it seriously, but if we speak up you can add your need to my need (same need) and we can demostrate that the need is there for them to properly handle this feature and make it workable.

https://issues.liferay.com/browse/LPS-76699

I got this respnse from help:
 

  1. If you wish to customize individually the fields that users are allowed to edit to true/false, you can use the following properties (uncommented) with the proper email domain set as values:
    field.editable.domains[birthday]=
    field.editable.domains[emailAddress]=
    field.editable.domains[firstName]=
    field.editable.domains[gender]=
    field.editable.domains[jobTitle]=
    field.editable.domains[lastName]=
    field.editable.domains[middleName]=
    field.editable.domains[portrait]=
    field.editable.domains[prefix]=
    field.editable.domains[screenName]=
    field.editable.domains [suffix]=

Once you’ve applied these settings to your portal-ext.properties, you can test as any non-administrator user to verify this workaround.