Skip to main content
Solved

Restricting Required Field to specific screens


Forum|alt.badge.img

I am looking to set the Price Class field to be required on the location screen when a customer is being created.

So my attributes are set as below.

This works fine on the customer screen but when I try to add a vendor or employee I hit a stop as the price class is not populated, price class isnt required on either so is there anyway just to enforce this requirement on the customer screen?

 

[PXDBString(10, IsUnicode = true)]
[PXSelector(typeof(AR.ARPriceClass.priceClassID))]
[PXDefault(PersistingCheck = PXPersistingCheck.NullOrBlank)]
[PXUIField(DisplayName = "Price Class", Visibility = PXUIVisibility.Visible, Required = true)]

 

Best answer by Dmitrii Naumov

You should use CacheAttached to only replace the attributes for a specific graph.

See here: https://help.acumatica.com/(W(5))/Help?ScreenId=ShowWiki&pageid=d0634e8a-3a21-454c-963a-6741e7ec8390

And here: https://help.acumatica.com/(W(6))/Help?ScreenId=ShowWiki&pageid=80e817bd-e70b-45b9-a9b1-2d2d0e2f8ee2

View original
Did this topic help you find an answer to your question?

2 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 632 replies
  • Answer
  • August 1, 2023

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 11 replies
  • August 2, 2023

Thanks for that Dmitrii


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