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
Priyesh Misquith 12Priyesh Misquith 12 

getting the value from the label and showing in creation page.

This is for custom VF page

I have a custom object with field custom field
CCObject__r.CCfield__c which is Long text field.
I have created a custom label Example  which cointain some value

Now i want to pre populate the Label value in field when user try to create a new record  also he can change the value from the field and save the record.(this is for record creation scenario).

 
sunny522sunny522
Hi Priyesh,
see the example in the link below
https://salesforceglobe4u.blogspot.com/2020/03/salesforce-record-creation-example-in.html

In the constructor, you can refer the label like this
acc.Description = System.Label.Example;  where description is your field and example is your label.

when you assign the label in the constructor,as soon as the vf page loads,it will fetch the value from label.