You need to sign in to do that
Don't have an account?
![Trif Cristian 7 Trif Cristian 7](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
how this method works?
Hi, I have a very basic question.. But I don't know whats happening in this method, I know its an embarrassing question.
public String conversionPageDescription {
get {
return Label.CONTACT_CONV_MSG_TEXT_DESCRIPTION.replace('{1}', pageForm.contact.FirstName + ' ' + pageForm.contact.LastName);
}
}
All Answers
1. Return the values to the calling place ( VF page)
2 . Return value is coming from the CONTACT_CONV_MSG_TEXT_DESCRIPTION Label
3. You are updating the label data dynamicall with the fomrate option .. Menas
Your label is conatins value {1} Hello --> it will replace outout with contact firstname followed by hello and last name
Refer this link
https://egarakesh.wordpress.com/2016/08/12/salesforce-parameterized-custom-labels/
Yes, but this line is a variable, conversionPageDescrption it's a string variable, right?
How it transforms from a string variable into a method? I thought a method need to have parameters like this, for example: