You need to sign in to do that
Don't have an account?
Sandra O
Passing values to a VF Page via a Custom URL
Hello-
I know you can normally use a controller to do this - but I want to pass values from my custom button to my VF page. AS of right now - I am unable to get the Priority field to show "High."
Any help?
Here is my custom button:
Here is my VF Page:
I know you can normally use a controller to do this - but I want to pass values from my custom button to my VF page. AS of right now - I am unable to get the Priority field to show "High."
Any help?
Here is my custom button:
/apex/EscalateIncident?&id={!Incidents__c.Id}&00Nn0000000Pp0u=High&retURL=%2F{!Incidents__c.Id}
Here is my VF Page:
<apex:page standardController="Incidents__c"> <apex:form > <apex:pageBlock title="Escalation Notes: {!Incidents__c.Name}"> <apex:pageBlockSection title="Escalation Notes" columns="1"> <apex:inputField value="{!Incidents__c.Escalation_Notes__c}"/> <apex:outputField value="{!Incidents__c.Priority__c}"/> </apex:pageBlockSection> <apex:pageBlockButtons > <apex:commandButton action="{!save}" value="Save"/> <apex:commandButton action="{!cancel}" value="Cancel"/> </apex:pageBlockButtons> </apex:pageBlock> </apex:form> </apex:page>
Use appropriate behavior.
You can set the same above URL for your content source
/apex/EscalateIncident?&id={!Incidents__c.Id}&00Nn0000000Pp0u=High&retURL=%2F{!Incidents__c.Id}
WHere can I choose Content Soruce? I don't see that available.
Refer this help Link
https://help.salesforce.com/HTViewHelpDoc?id=defining_custom_links_fields.htm&language=en_US