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
fredkafredka 

Default Value for URL Field

I have a field that is of data type "URL"  I am trying to add a default value:

 

http:%2F%2Fhorizonblue.force.com%2Fparticipationform%2FAuditCancelPage

 

However, I am getting the following error:  "Syntax error"  I replaced the "/" with %2F because it did not like the "/"

 

any help would be appreciated!! thanks!

 

fred

Best Answer chosen by Admin (Salesforce Developers) 
fredkafredka

I figured it out... I needed to enclose in " " ... thanks!

 

 

All Answers

fredkafredka

I figured it out... I needed to enclose in " " ... thanks!

 

 

This was selected as the best answer
SalesforceSallySalesforceSally

Put the text of your URL in the default value. For example if you wanted to put http://m.www.yahoo.com/

 

You would put "http://m.www.yahoo.com/"

Message Edited by SalesforceSally on 01-27-2010 07:36 AM
fredkafredka

Thanks for responding saleforcesally... love the name!!!

 

Fred

SalesforceSallySalesforceSally
No problem. Thanks! :smileyhappy: