I am creating a page.where we search a record based on the given id.the record is displayed along with a edit and save button.The data is displayed onto label.On the click on edit button the label should be changed into textbox prepopulated with the data.how do i accomplish this?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:
Here's how it works:
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
you can set boolean flag true in constructor initially.
you can set flag true/false accordingly on EDIT/SAVE button method.