EditDialogue Script : FormView
Syntax
<dlog:FormView id={unique FormView ID} fieldname={object field name} param={CGI param} CssClass={CSS class}></dlog:FormView>
Usage
Displays a dynamic string from a Salesforce record or URL parameter.
Attributes
id: (Required) A unique identifier for the control. Multiple form views displaying the same information may be used on a page, but each FormView control must have a unique ID.
fieldname: (Required) The Salesforce custom field name to be displayed.
param: (optional) Populates the label from a URL parameter. For example, the "fname" parameter in the URL mypage.aspx?fname=Francis may be accessed and displayed using the following FormView syntax:
<dlog:FormView id="FormView1" fieldname="FirstName"></dlog:FormView>
CssClass: (Optional) Reference to a Cascading Style Sheet class for defining presentation of control.
objectname: (Optional) Reference to the Salesforce object name (if different than the object defined in the script editor).
Example
<dlog:FormView id="FormView1" fieldname="FirstName">
<HeaderStyle forecolor="white" backcolor="Blue" />
<ItemTemplate>
<table>
<tr>
<td align="right"><b>First Name:</b></td>
<td><dlog:Label id="FirstNameLabel" fieldname="FirstName"></dlog:Label></td>
</tr>
<tr>
<td align="right"><b>Last Name:</b></td>
<td><dlog:Label id="LastNameLabel" fieldname="FirstName"></dlog:Label></td>
</tr>
</table>
</ItemTemplate>
</dlog:FormView>