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
NativeNative 

Custom Text Field Default Value Error when trying to enter URL

I am trying to create a Custom Field of type Text that has a default value that is a URL.

 

When I put the URL ( i.e. http://www.domain.com/path/ ) into the default value,

I receive the error:   "Error: Syntax error. Found '/'"

 

I've tried using different escape character sequences and forumulas to properly encode the URL but have not found the correct method.

 

Any help would be appreciated.

Best Answer chosen by Admin (Salesforce Developers) 
mpannmpann

Just put it in quotation marks and it should work.

 

"http://www.domain.com/path/"