We have a VF page -Deal Registration that we want to expose to a certain Profile Portal User Distributor This page was initially not available for this profile to view. We now want to expose this page to the profile.

The Profile has Enabled Visualforce Page Access to the page.

Is the ability to view the page determined by the code on the VF page or is there another setting I need to go to?

I've found these two sections of code which I think may need changed:

$(document).ready(function() { if ('{!isDistributorProfile}' == 'true') { window.open('/s/FunctionalityNotAvailable', '_parent'); } });

<apex:stylesheet value="{!$Resource.style_resources}" />
<apex:pagemessages id="messages" />

<apex:form id="formId" rendered="{!!isDistributorProfile}">
    <apex:inputHidden value="{!ctrRemove}" id="ctrRemove" />
    <apex:actionFunction name="saveLead" action="{!validateInput}" reRender="jspanel,formId"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.