Skip to main content

Posts

Showing posts with the label Contact Edit page

A Visualforce Page Excatly Same as Contact Edit Page

Hi  This is a very simple post. I had seen that question  developerforce.com . That's why I thought I will share in my blog. The question was there will be a link called "Copy Mailing Address to Other Address" when clicked that link all Mailing address will be copied to other address same as standard edit page of contact. This can be done two ways.  By using java script By using Controller extension In the command link we have to call java script method there we will get all the field value of mailing addresss using documnet.getElementByid() method in javascript and will assign to the other address field.  Second approach is we will call extension method where will assign all the mailing address field to other address field and will reRender (refresh) the block. It will behave exactly like as standard edit page layout of Contact functionality. Now the challenge is how will we display that command link inside that pagablock section header. ...