Skip to main content
Answer

How to override the default account selector warning

  • March 23, 2023
  • 1 reply
  • 84 views

Forum|alt.badge.img
#region UsrAccount
[Account(DisplayName = "Account", BqlField = typeof(INTranExt.usrAccount), Visibility = PXUIVisibility.Visible, Filterable = false, DescriptionField = typeof(Account.description), Required = false, AvoidControlAccounts = true)]
public virtual int? UsrAccount { get; set; }
public abstract class usrAccount : PX.Data.BQL.BqlInt.Field<usrAccount> { }
#endregion

I have created a custom field with Account attribute.
Account attribute has this default warning in place.
 

I have added FieldVerifying on the my custom field. But this warning seems to override my error message. How can I show my error over this default warning I am not able to figure this out.

Can anyone share some suggestions.

Thanks.

Best answer by aaghaei

Have you tried to set your custom field as

AvoidControlAccounts = false

1 reply

aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • Answer
  • March 23, 2023

Have you tried to set your custom field as

AvoidControlAccounts = false