You need to sign in to do that
Don't have an account?
Revathi V 18
Regex in workflow to remove line breaks and white spaces
I'm trying to remove line breaks and white spaces in Rich Text Area field when Text Area is not containing any words or characters.I'm doing this by using workflow.I used "^[\\s<>br]+$" regex,but this is not satisfield in Rule criteria.
Any one can suggest the correct regex to do this?
Thanks in advance
Any one can suggest the correct regex to do this?
Thanks in advance
Rich Text Area(SHI__c) field is not updating after editing the record.It's showing that whatever spaces and lines i gave.
Can you please explain the requirement briefly?
Thanks,
Kamala
Sweet Potato Tec.
If this field contains only line breaks and spaces,i just want to nullify the field because it's taking too much space on the UI.
I have worked on this issue it never consider the Line break in the Rich Text Area field because when we pressed enter button it consider as the paragraph not a line so it doesn't check the line break.
It checks the white spaces using the formula
REGEX('fieldName', '^\\s*$')
See the link to Know the properties of the Rich Text Area field
https://help.salesforce.com/articleView?id=fields_using_rich_text_area.htm&type=5
Hope this helps!
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
Thanks,
Kamala
Sweet Potato Tec.