EditDialogue Script : TextBox
Syntax
<dlog:TextBox id={unique TextBox ID} fieldname={object field name} param={CGI param}
format={string format} CssClass={CSS class} HasFocus={true;false} Autofill={true;false}></dlog:TextBox>
Usage
Displays a dynamic string from a Salesforce record or URL parameter.
Attributes
id: (Required) A unique identifier for the control. Multiple text boxes displaying the same field may be used on a page, but each TextBox control must have a unique ID.
fieldname: (Required) The Salesforce custom field name to be displayed.
format: (Optional) Defines the
format of the Textbox string.
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 TextBox syntax:
<dlog:TextBox id="TextBox1" param="fname"></dlog:TextBox>
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).
HasFocus: (Optional) Default=false. Determines whether the textbox automatically has form focus for data entry (sets a blinking cursor in the textbox). Only a single Textbox may have focus. If multiple TextBoxes define HasFocus=true, then the last TextBox in the form gets focus.
Autofill: (Optional) Sets the autofill function of the text field. Determines whether the textbox is automatically filled if a current object context is available and valid fieldname attribute defined. Default value is "true".
View more attributesExample
Hello <dlog:TextBox id="TextBox1" fieldname="FirstName"></dlog:TextBox>,
Welcome to your personalized home page!