Skip to main content
Answer

Restricting Required Field to specific screens

  • August 1, 2023
  • 2 replies
  • 68 views

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

2 replies

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

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

Thanks for that Dmitrii