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
manishamanisha 

Custom Link Formula for URL

I am creating a custom like as a URL. When you click on it takes you to a different page outside of Salesforce.

The URL has a Username=XXXXXX and thats unique to each user.

In my Custom Link  I am puting in the URL={Field that has the XXXXXX} value that way it would combine it and make it a correct URL and take the user the location they need to be at. but its not working. I am not getting any syntax errors but when I got as a user and click on it its only taking the UrL not the Field with the value. How can I fix this?

SrikanthKuruvaSrikanthKuruva

can you post the formula you have created?

SrikanthKuruvaSrikanthKuruva

Go the respective field. click on the edit button and in the default value give as follows and save

"http://dealer.woodsequipment.com/mccormickLogin.aspx?userID="+{!$User.WoodsCode__c}

 

 

let me know if this works or not.

SrikanthKuruvaSrikanthKuruva

Actually it works for me (not the same url but similar one). i think you are doing a mistake somewhere. did you give double quotes around the url as mentioned below.

"http://dealer.woodsequipment.com/mccormickLogin.aspx?userID="+{!$User.WoodsCode__c}

 just copy paste the whole thing in the default value for the field along with double quotes.

manishamanisha

 

Button or Link URL

"http://dealer.woodsequipment.com/mccormickLogin.aspx?userName="+{!User.WoodsCode__c}

 

 

 

This is what I have and then when I go to test this in my Portal.

I am able to click on it but then this is what I get on the page that opens for the link:

 

http://dealer.woodsequipment.com/mccormickLogin.aspx?userName=+ (In the URL) so its not taking the User.WoodsCode and its not combining it.

 

For all of my users this http://dealer.woodsequipment.com/mccormickLogin.aspx?userName= (will be the same) the User.WoodsCode will be unique.

So I am trying to make this link that way it will create a link on the account when they login into to use it.

Thank you,