function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
S_BatmanS_Batman 

Making email domain field not underlined...

I have a custom field on the Lead object, that captures the lead's email domain and inserts it there.  Is there a way to make it so it does not underline?

Here's the formula that I've used on the custom field:

IF(NOT(ISBLANK(Email)),RIGHT(Email,LEN(Email)-FIND('@',Email)),null)

Currently my field looks like this:
User-added image

I want it to look like this
User-added image

bob_buzzardbob_buzzard
I think you'll find that this is your browser doing the underlining, not Salesforce. The browser recognises this as matching a URL pattern and so helpfully turns it into a link for you. Typically the way to stop this is to break the string up with spaces, but that would mean that if someone copied the domain they wouldn't be able to use it as-is. Aside from that, I'm not sure what you are going to be able to do, as you can't output any HTML codes from a formula that would stop the browser doing this.