I want to forcefully input Data in UpperCase Only
Solved
LowerCase to UpperCase on Leads
Best answer by andriitkachenko
Hi
If it’s your custom field - I’d try first to change the setter:
public string Field
{
get
{
return Field;
}
set
{
Field = value.ToUpper();
}
}For standard field - you can create a Graph Extension, define an event handler (FieldUpdating) and change the case:
protected virtual void _(Events.FieldUpdating<YourDac.field> e)
{
if (!(e.NewValue is string newValue))
return;
e.NewValue = newValue.ToUpper();
}You could also go with the trigger in the database, but I’d say doing it in code is more preferable.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
