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
sgm_forcesgm_force 

Button override not working in the customer portal site

Hi everyone,

I have a custom object called WorkItem which I have made visible through customer portal. In my org, I have overridden the "Create New WorkItem" button with a VF page and it is working perfectly fine. But, when I try to access it through my customer portal,  I am facing some problems and am not be redirected to the overriden page. rather, I am getting the standard edit page.

 

What do I need to do in order to fix this?

 

Thanks in advance.

 

SGM

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora

There must be some problem with rights. Please let me know the exact error occurred.

 

Also make sure :

 

1) Your apexpage have rights for portal.

2) Your object must have create/save/edit rights for portals.

3) Fields used in apex page should have visible rights for portal.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

All Answers

Ankit AroraAnkit Arora

There must be some problem with rights. Please let me know the exact error occurred.

 

Also make sure :

 

1) Your apexpage have rights for portal.

2) Your object must have create/save/edit rights for portals.

3) Fields used in apex page should have visible rights for portal.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

This was selected as the best answer
Pavan777Pavan777

Hi Ankit,

I'm also facing the same issue. I've verified the security settings and everything seems to be perfect, not sure why the override functionality is not working(instead of redirecting to VF page the button is taking me to standard edit page)

 

Any suggestions would be of great help.

 

Thanks,

Pavan.

Ankit AroraAnkit Arora

Hi Pawan,

 

Please let me know which object you are displaying to portal user, as very few object have rights to customer portal. Also let me know if you are working with customer portals or Sites?

 

Also explain me in brief what exactly you are doing and where you are facing problem.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

Pavan777Pavan777

Thanks for the response Ankit.

 

I was able to resolve the issue, it's with the FLS, have one field that was hidden from the portal user and hence was the issue.

 

Regards,

Pawan.

Ankit AroraAnkit Arora

So my post helps you, can you please mark it as solution.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

sfdcdev.wordpress.comsfdcdev.wordpress.com
Hello Ankit -

I have read several of your posts .. you are a rock star..

We are trying to do similar thing for communities deployment and running in the same exact issue.
If I trype the VF page URL directly in the browser the page opens with out any issue. However, the redirect does not work.


Any help is greatly appreciated.