Here's what I am trying to do:
1) User creates record A.
2) Time-based workflow sends an email to the Record A creator based on a date field in the record.
3) The email template has a URL link.
4) The URL links to a Visualforce page that is basically a form with fields to be filled out (this Visualforce page is in a managed package) and a save button that creates a new User record.
5) When the User clicks the URL link in the email, the Visualforce page opens in a new window.
6) I would like to pass the values of the fields in record A to pre-fill the Visualforce page fields.
Here's my link:
<a href="https://cs19.visual.force.com/apex/CloneThisUser?Desktop=true&Id={!Pending_User__c.User_to_CloneId__c}&formGroupInputSmall={!Pending_User__c.First_Name__c}
And here's the code from the relevant section of the Visualforce page:
<div class="form-group form-group-sm">
<!-- <apex:outputLabel styleClass="col-sm-2 control-label" for="formGroupInputSmall">First Name</apex:outputLabel> -->
<div class="col-xm-11 col-sm-12">
<apex:inputField html-placeholder="First Name" styleClass="form-control FirstNameInput" value="{!u.FirstName}" id="formGroupInputSmall"/>
</div>
</div>
I have only included the first field I would like to pass the parameter to, in order to keep this post simple.
The link passes the User_to_Clone_Id__c just fine but does not fill in the "First Name" field with the value of the First_Name__c .
What am I doing incorrectly? Thanks.
apex:include
on your own custom page, but I haven't worked with managed packages before.