You need to sign in to do that
Don't have an account?

How to calculate number of words in long text area field
I wanted to create a formula field that calculates the number of words (or characters) in a long text area, but I see that Salesforce does not have this capability. But I hear that apex can accomplish this? Sadly, I am not good with apex code, but I'm wondering if someone has any ideas on how to draft this code? Here are the specifics I am working with:
- Calculate number of words (or characters) of field Testimony__c on Custom Object TargetX_SRMb__Essay__c and display results in field Testimony_Word_Count__c (also on Custom Object TargetX_SRMb__Essay__c).
Here is what the trigger would look like. And below is the helper class. As I noted in that comment in the code, I wouldn't implement the word count part of the code without finding a more mature solution to the word count, especially since you are using a long text field where new lines can be reasonably expected.
All Answers
Here is what the trigger would look like. And below is the helper class. As I noted in that comment in the code, I wouldn't implement the word count part of the code without finding a more mature solution to the word count, especially since you are using a long text field where new lines can be reasonably expected.
shareit apk download (https://shareitdownloadx.com)
shareit downloading (https://shareitdownloadx.com)
I wouldn't implement the word count part of the code without finding a more mature solution to the word count.