You need to sign in to do that
Don't have an account?
SFDCExplorer
How to copy data from one field to another field when check box is checked
I have some fields in my UserDetails__c object to display current address and permanant address. If both addresses are same then user can select the check box,so that perrmanant adress fields will get papulated automatically.I need to do this in vf page.Could any body help me here.
You can achieve this functionality by using the <apex:actionSupport> tag.
apex:actionSupport:
Visualforce Page:
Controller Class:
Also, check the below links.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionSupport.htm
http://www.sfdcpoint.com/salesforce/actionsupport-visualforce-salesforce/
Hope this helps you!
Best Regards,
Deepthi
All Answers
Please send me your existing VF page so that it will be easy to help you.
Here we have to use the <actionSupport tab on the check box, whne you select it and if the selection is true then call the controller method and copy the address fields and do reRender the page.
Please paste the existing VF page.
Regards,
Mahesh
You can try below code. Let me know if it works. Thanks
VF Page :
Apex Controller :
You can achieve this functionality by using the <apex:actionSupport> tag.
apex:actionSupport:
Visualforce Page:
Controller Class:
Also, check the below links.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_actionSupport.htm
http://www.sfdcpoint.com/salesforce/actionsupport-visualforce-salesforce/
Hope this helps you!
Best Regards,
Deepthi
Thank you so much for your reply. I got what I required exactly.