function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ForstaForsta 

Create new contact from Web Email

I am using email to case and we sometimes get cases with no matching contact found. I would like to have a custom button on the case that can open a new contact screen and parse the Web email address to a custom VF page I created. The new page should close on successful save (contact creation) or by clicking cancel. I am new to programming and would appreciate some assistance on how to nake this work.

 

Thanks

 

My VF page:

<apex:page standardController="Contact" showHeader="false" sidebar="false">
<style type="text/css">
h2{
font-size:20pt;
}
</style>

<h2>Create a new contact</h2>
<p />
<apex:form >
<apex:pageblock >
<apex:pageblockbuttons location="bottom">
<apex:commandButton action="{!save}" value="Save" id="SaveButton"/>
<apex:commandButton action="{!cancel}" value="Cancel" id="CancelButton"/>
</apex:pageblockbuttons>

<apex:pageblocksection columns="1">
<apex:inputField value="{!Contact.FirstName}"/>
<apex:inputField value="{!Contact.LastName}" />
<apex:inputField value="{!Contact.Email}" />
<apex:inputField value="{!Contact.AccountID}" required="true" />
</apex:pageblocksection>
</apex:pageblock>
</apex:form>
</apex:page>