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
yogesh.rankawatyogesh.rankawat 

Override 'Enable Customer Portal User' standard button of Contact

'Enable Customer Portal User' standard button of Contact is not Override correctly means it does not do override s-control action.

Please fix this problem.
werewolfwerewolf
Just hide that button and make a custom button with the same label that does what you want to do.
yogesh.rankawatyogesh.rankawat
Creating the new custom button is not the solution of this problem. Because i want all the default functionality of that button too.
depends on this logic the 'View Customer Portal User' is display/hide.

aperezSFDCaperezSFDC

You need a VisualForce page like this:

 

<apex:page standardController="User">
</apex:page>

 

When I overrode the button, and I clicked it, the URL invoked was:

https://c.na6.visual.force.com/apex/c04025321
?ut=c
&retURL=%2F0038000000YGD3n
&cntc=0038000000YGD3n
&Email=j.davis%40expressl%26t.net
&Username=j.davis%40expressl%26t.net
&Title=Director%2C+Warehouse+Mgmt
&Department=Warehouse+Mgmt
&Phone=%28503%29+421-7800
&Fax=%28503%29+421-7801
&MobilePhone=%28503%29+421-4387
&name_firstName=Josh
&name_lastName=Davis
&Alias=jdavi
&Addressstreet=621+SW+5th+Avenue+Suite+400%0APortland%2C+Oregon+97204%0AUnited
+States
&CommunityNickname=j.davis
&scontrolCaching=1
&sfdc.override=1

 

You can use these parameters to pre-load the data in your VisualForce page.

 

Andrés Pérez
Senior Developer Support Engineer