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
rumit lumiarumit lumia 

"Save and New" button in Community's Standard Contact Page's Edit layout is giving is giving Invalid page error

"Save and New" button in Community's Standard Contact Page's Edit layout is giving is giving Invalid page error.

"New" button of Contact is overridden by a VF page. 

I have checked following settings in the Profile of this community:

Contact Object has read Write and Create permission
Account Object has Read permission
Fields of Contact Object has appropriate FLS,
VF page and its class which is used in New Button have access.



Please let me know if I have missed anything.


Best,
Rumit
NagendraNagendra (Salesforce Developers) 
Hi Rumit,

You will need to check the permissions on the VF Page, and also the code in the controller to make sure access is properly defined for all the objects and fields.  The Developer Community has complete VF and Apex documentation:  https://developer.salesforce.com.

Thanks,
Nagendra.
rumit lumiarumit lumia
Hey All,

As I have mentioned, I have already checked permission of the VF page.
i.e. I have added the page and its class(Contact and Account object and their fields) in the Custom Community User profile and as well as in Public Access Setting - 'Enabled APEX Class Access' and 'Enabled VF Access'.


For testing purpose, in one of my sandbox, I have even tried following things

1. Removed the VF page overridden - Things worked fine.
2. Changed the code of Overridden page.
 Made it as <apex:page standardController="Contact"> </apex:page>
- Then things started failing. So I assume that only some access is missing, but not able to find which.