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
Riyaju.ax1518Riyaju.ax1518 

How to pass value by using Button link URL?

Hi, 

In my salesforce i m using one Button link, there I gave follwing URL. When I am clicked this button does not pass value wherever i m using paaing values.

 

For examble: Firstname={(Contact.Firstname)} --> passing the value like {(Contact.Firstname)}

but actually i want firstname of corressponding customer.

 

 

http://localhost/MIndleverQBWeb/sfpage.aspx?username='test'&password='test'&alevel={(Contact.A_Level_Year__c)}&contacttype={(Contact.Contact_Type__c)}&Firstname={(Contact.Firstname)}&Lastname={(Contact.Lastname)}&Email={(Contact.Email)}&Mobile={(Contact.Mobile)}&Address={(Contact.MailingAddress)}

Best Answer chosen by Admin (Salesforce Developers) 
Madhan Raja MMadhan Raja M

Hi Riyaju,

 

The issue is in your syntax.

 

Use Firstname={!Contact.FirstName} instead of Firstname={(Contact.Firstname)}

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

 

Madhan Raja M

 

All Answers

MagulanDuraipandianMagulanDuraipandian

Try like this

window.open("URL_Of_LocalHost?id={Contact.FirstName}");

 

Regards,

Magulan D

Salesforce.com certified Force.com Developer.

SFDC Blog

If this post is your solution, kindly mark this as the solution.

Madhan Raja MMadhan Raja M

Hi Riyaju,

 

The issue is in your syntax.

 

Use Firstname={!Contact.FirstName} instead of Firstname={(Contact.Firstname)}

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

 

Madhan Raja M

 

This was selected as the best answer