Skip to main content
Question

Add Password Mask in Modern UI


epetruncio
Freshman II

I am trying to adjust a field so that the input is masked like a password field. I have it in my classic UI customization, but I am unable to find any resources for implementing this in the modern UI.

The field in question is a base field on an Acumatica page. The field is the “Header Value” field in the “Push Notifications” page SM302000. 

I have two questions:

The first is what and where do I add modifications to adjust this field to be masked as a password? Do I adjust the DAC definition for the modern UI, do I adjust the view definition of this field in an extension .ts file, and/or do I create an html extension field that modifies it?

The second question is what would that syntax look like? What specifically do I need to add to create the password masking?

I did try to look for examples within the provided Acumatica code, but was unable to find any examples.

3 replies

Forum|alt.badge.img+6
  • Captain II
  • 556 replies
  • March 5, 2025

You can use the following attribute on the field:

[PXRSACryptString(512, IsUnicode = true)]

 

This community post has some more information on it.

 


epetruncio
Freshman II
  • Author
  • Freshman II
  • 5 replies
  • March 5, 2025

Thanks Django, that appears to have worked, and that was exactly what I was looking for.


epetruncio
Freshman II
  • Author
  • Freshman II
  • 5 replies
  • March 26, 2025

I need to re-open this query and unmark the original answer sadly. 

I did not realize in the linked topic that you posted that it states specifically that these values cannot be sent via API/Web Endpoints decrypted. The only thing I need is to hide the value on the UI. The value itself can be stored in the DB without encryption because we will need to fetch that value via API. The customer just does not want workers being able to see the value who also do not have access to the DB.

Is there a way to just hide the value in the UI only, again specifically for the modern UI, as I already have the solution for this in the classic UI?

To be clear, this is what I’m looking to do in the Modern UI:

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings