You need to sign in to do that
Don't have an account?
Abdul Khatri 7
Button on Visual Force page not showing up for some profiles?
I created a visual force page with a button but the button is not visible for certain profiles. Please find the Code below, the "Create Lead" button is not showing up
Can anyone help what is causing this?
<apex:page standardController="Contact" extensions="ContactControllerExtension">
<apex:form >
<apex:pageBlock id="in" title="New for: {!Contact.Name} ">
<apex:pageblockSection title="New Lead" columns="1">
<apex:outputField value="{!Contact.Field1}" rendered="false"/>
<apex:outputField value="{!Contact.Field2}" rendered="false"/>
<apex:outputField value="{!Contact.Field3}" rendered="false"/>
<apex:outputField value="{!Contact.Field4}" rendered="false"/>
</apex:pageblockSection>
<apex:pageBlockButtons >
<apex:commandButton action="{!Create}" value="Create Lead" />
<apex:commandButton action="{!Cancel}" value="Cancel" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Can anyone help what is causing this?
<apex:page standardController="Contact" extensions="ContactControllerExtension">
<apex:form >
<apex:pageBlock id="in" title="New for: {!Contact.Name} ">
<apex:pageblockSection title="New Lead" columns="1">
<apex:outputField value="{!Contact.Field1}" rendered="false"/>
<apex:outputField value="{!Contact.Field2}" rendered="false"/>
<apex:outputField value="{!Contact.Field3}" rendered="false"/>
<apex:outputField value="{!Contact.Field4}" rendered="false"/>
</apex:pageblockSection>
<apex:pageBlockButtons >
<apex:commandButton action="{!Create}" value="Create Lead" />
<apex:commandButton action="{!Cancel}" value="Cancel" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Please mark it Best Answer if it helps.
Any other thought?
<apex:page standardController="Contact" extensions="ContactControllerExtension">
<apex:form >
<apex:pageBlock id="in" title="New for: {!Contact.Name} ">
<apex:pageblockSection title="New Lead" columns="1">
<apex:outputField value="{!Contact.Field1}" rendered="false"/>
<apex:outputField value="{!Contact.Field2}" rendered="false"/>
<apex:outputField value="{!Contact.Field3}" rendered="false"/>
<apex:outputField value="{!Contact.Field4}" rendered="false"/>
</apex:pageblockSection>
<apex:pageBlockButtons >
<apex:commandButton action="{!CreateLead}" value="Create Lead" />
<apex:commandButton action="{!Cancel}" value="Cancel" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Thanks. I will still make your answer the best one.