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
wsuycottwsuycott 

navigateToUrl works for admin, but not for others in org

onclick="navigateToUrl('/003/e');" within a VF button will work for while developing as the admin, but not for the others in the company that I try to test.  I have included all user profiles within the security of this VF page, and the users have the rights to add a new contact if they are not attempting to do so using the navigateToUrl.

 

Anyone have any ideas on what might be causing this.  I am running my tests in the CS2 sandbox and seem to be bumping my head against the wall today on about 6 different navigateToUrl statements that all work for the admin and none of them work when I login as a non-admin user.

Best Answer chosen by Admin (Salesforce Developers) 
wsuycottwsuycott
Changed controller extension to include methods for changing screens vs. using javascript and then changed from onclick to action="{!gotoNewContact}" that was written in the controller extension.  Works much better and isn't subject to the issues present when in developer mode vs normal mode.