function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
FieldAPINAME.replaceAll( '\\s+', '');
trigger acctrigger on Account (before insert,before update) { for(Account acc: Trigger.new){ acc.name=acc.name.replaceAll( '\\s+', ''); } }
You can just use the below line in the trigger in for loop of Trigger.new as below.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,