Skip to main content
Answer

Dynamically Change Screen Header Label

  • September 29, 2022
  • 4 replies
  • 299 views

Forum|alt.badge.img+1

I’m trying to modify the screen header label on a screen, specifically the project ID field on the Projects screen, to show the separator dash”-” in between segments to match how the project ID field looks on the screen in the “Project ID” field. Currently, if the Project ID has segmented keys to separate the values (00001293rt-00010), the header value will only display as 00001293rt00010 since that’s the way the field is stored in the database. I am hoping to have the screen header label match what you see in the project ID field below it.

I’ve searched multiple topics on this and it seems like the best way to handle would be with javascript, but none of the examples I’ve seen have worked this situation, since it needs to formatted from data on the current record. Some of the screens have access to this “usrCaption” element that can be modified in C# code, but since this screen uses a master page, it’s not easily accessible.

I was curious if anyone has done anything similar to this before, and if so had any pointers on the best way to handle.

Thanks!

 

 

Best answer by aiwan

Hi ​@mbridges00 

 

This article might be of help:

Removing the Customer Name from the Sales Order Form Title in Acumatica Acumatica Expert

 

4 replies

darylbowman
Captain II
Forum|alt.badge.img+15

I believe by adding (or removing) the [PXFieldDescription] C# attribute (via the CacheAttached event handler) to the required DAC fields, you could modify this.

 

Edit:

Sorry, this doesn’t actually answer the original question at all. If anyone arrives here wondering how to change which fields are combined to set the page header, I think this is how.


hdussa
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • February 26, 2025

Hello ​@mbridges00 ,

I am with you on the analysis. The SPAN element with id usrCaption handles the screen header label. It is possible to modify using JavaScript functions which Acumatica does not recommend. I would first check with Acumatica by raising a dev support case if there is a best alternative such as masking the field value when reading from the DB.

Hope this helps!


Forum|alt.badge.img+8
  • Captain II
  • Answer
  • February 26, 2025

Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • June 17, 2025

Hi ​@mbridges00 were you able to find a solution? Thank you!