You need to sign in to do that
Don't have an account?
kirubakaran viswanathan
How to use the static text in multiple places within the same VF page?
For example, I have a text " Hello World", I need to use this text in the places in the VF page based on the Output render conditions at least 4-5 times in a page. I don't want to repeat this text hardcoded in the multiple places.
How can we achieve this without any extension/custom controller? Because in future I may need to change the text in Prod directly, rather than pushing the changes through Changeset.
P.S: I have really long text and I have multiple texts like this to be repeated.
How can we achieve this without any extension/custom controller? Because in future I may need to change the text in Prod directly, rather than pushing the changes through Changeset.
P.S: I have really long text and I have multiple texts like this to be repeated.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global_label.htm
You can able to populate the values using Output and update labels using the format() expression function.
{!format($Label.mySection.myLabel, v.attribute1, v.attribute2)}
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/labels_parameters.htm