Changing the module title based on values in related modules

Hi All,

Wondered if anyone is able to help point me in the right direction, with what I feel is a complicated requirement?

I’ve got a subpanel on a custom module. The custom module is a person type. In the subpanel, there is a field called Status. If the status in the Subpanel is anything other than Closed then I need the title of the module to be [salutation] [first name] [last name] - SAFEGUARD FLAG, however if there are no related records, or the status of all the related records are closed then the title should just be the regular [salutation] [first name] [last name].

In addition to this, the subpanel contains sensitive information that not all users in the system will be able to access, so there could be records that aren’t displayed in the subpanel which still need to be considered when setting the title of the module.

Thanks in advance for any help you can offer :slight_smile: