I'm having a bit of an issue where I can't figure out how to auto-populate some fields on a custom VF page that I made. The page is linked from a button that is found on an Orders object and should ideally auto-populate its fields using some of the fields on the Orders record that its linked from. I've already tried using URL hacking on the custom button, but I haven't had any luck. Here's my VF page:
<apex:page standardController="Payee__c">
<apex:form >
<apex:pageBlock title="Add Additional Payee Information" mode="save">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Additional Payee" columns="1">
<apex:inputField value="{!Payee__c.Order__c}"/>
<apex:inputField value="{!Payee__c.Payee_Type__c}"/>
<apex:inputField value="{!Payee__c.Agency__c}"/>
<apex:inputField value="{!Payee__c.Agent__c}"/>
<apex:inputField value="{!Payee__c.Additional_Agency_Rate__c}"/>
<apex:inputField value="{!Payee__c.Rate_Based_On__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
So the "Order", "Agency", and "Agent" fields are all lookups. The "Payee Type" and "Rate Based On" fields are picklists. And the "Additional Agency Rate" is a standard text input field. Again, I've already tried using URL hacking, just trying to populate the "Order" field to try to test it out but I haven't had any luck with that. I'm going to try to write an extension for the VF page, so I'll let you know how that goes. If anyone knows how to handle this issue, it would be greatly appreciated! Thanks!