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
kabkab 

How can I have enterable field and display values from SFDC in Visualforce Email Template ?

kabkab

I tried to put the input field and entered the value while sending the email but those values are not embebed with the email.

Am I doing something wrong?

 

Here is my code.

<messaging:emailTemplate relatedToType="Opportunity" subject="opportunity report for  : {!relatedTo.name}">
<messaging:htmlEmailBody >
<html>
<body>
<table >
    <tr>
        <th> Name </th>
        <th> CloseDate </th>
        <th> Stage Name </th>
        <th>test</th>
    </tr>
        <tr>
           <td>{!relatedTo.Name}</td>
           <td>{!relatedTo.CloseDate}</td>
           <td>{!relatedTo.StageName}</td>
           <td><input name="test" type="textbox" maxlength="20"/></td>

        </tr>
     
</table>
  
</body>
</html>
</messaging:htmlEmailBody>
</messaging:emailTemplate>

Ankit AroraAnkit Arora

I don't think you can send values like this. You can only use merge fields to do so.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page