You need to sign in to do that
Don't have an account?
Yash Rathod
Unable to Create a Visualforce page which shows a basic Contact record
Hi,
I've created a Visualforce page which shows a basic Contact record using standard controller. Below is the code:
But, when preview it after saving, everytime it prompts " PAGE NOT SAVED. You have uncommitted changes to this VisualForce page. This preview will show the most recently committed version of this page, not your current changes." Also the preview page is blank.
I would like to know what is missing here. I am not able to solve it.
I've created a Visualforce page which shows a basic Contact record using standard controller. Below is the code:
<apex:page standardController="Contact"> <apex:pageBlock title="COntact Summary"> <apex:pageBlockSection> $A.get("e.force:navigateToURL").setParams( {"url": "/apex/pageName?&id=0037F000007xdK4QAI"}).fire(); First Name: {! Contact.FirstName} <br/> Last Name: {! Contact.LastName} <br/> Contact Owner's Email: {! Contact.Owner.Email} <br/> </apex:pageBlockSection> </apex:pageBlock > </apex:page>
But, when preview it after saving, everytime it prompts " PAGE NOT SAVED. You have uncommitted changes to this VisualForce page. This preview will show the most recently committed version of this page, not your current changes." Also the preview page is blank.
I would like to know what is missing here. I am not able to solve it.
Please try the below piece of code which is working fine for me. Hope this helps.
Please mark this as solved if it's resolved.
Thanks,
Nagendra
I can't find the API names (first & last name) exposed for standard controller in the sObject,
Salesforce should display this, only way to know is through trailhead docs. or blogs like this !