I want to make field Tax Registration ID required but a single space or multiple spaces should still be considered valid input
I implemented following event handler: RowPersisting, FieldVerifying, FieldUpdated but the value of this field is always null even though I input a space character “ “
I don’t know if Acumatica might be automatically trimming whitespace inputs to null during data processing.
You can use field verifying event and check for null or whitespaces values as below
protectedvoid _(Events.FieldVerifying<Location.taxRegistrationID> e)
{
if (e.NewValue isstring input)
{
// Check if the input is null or whitespaceif (string.IsNullOrWhiteSpace(input))
{
//your logic
}
}
}
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.