About the Input Box control |
This topic describes the V5.X Input Box control (which remains available and supported in V6.X).
As a best practice for new development, use the Text Input control (control pxTextInput) introduced in V6.1 SP2, rather than the older V5.X Input Box control. To place the Text Input control in a section or harness, drag and drop the text input icon () from the Basics control group onto a layout cell. See Sections — Adding a Text Input control.
Cell Properties panel — Top fields
Click the magnifying glass icon () to open the Cell Properties panel. Complete the top fields that appear.
If the panel is pinned (), the wireframe presentation on the rule form changes immediately to reflect of your inputs. If the panel is not pinned (), click Apply to apply your inputs.
Field |
Description |
(Appears only when this field is in a section included within the current open rule.) Click to open the section that immediately contains the field. |
|
Property |
Select or type a property reference that identifies a single text value. Alternatively, you can drag a property name from the lists of properties visible in the Application Explorer. Typically, this works for Click the pencil icon () to review the property rule (if the reference is to an existing property in the Applies To class of this rule or a parent of that class). If the property is not found, the New dialog box for the property form appears. You can reference properties on any page identified on the Pages & Classes tab, using the normal notation pagename.propertyname for pages other than the page corresponding to the Applies To class of the rule. If this field is in a cell of a section that includes parameter declarations on the Parameters tab, you can enter the notation param.NAME here, to use a parameter value for the field, where NAME identifies a string parameter. Make sure that the NAME parameter is declared on the Parameters tab, and that your application provides a non-blank value for the parameter value in all possible situations where the section appears. See Sections — Completing the Parameter tab. |
Control |
Optional. Select a control to format the property value. The wireframe preview changes to reflect the value (when presented in read-write mode.) If you leave this blank, the form uses the control identified in the property. (If no control is referenced in the property, the control named Default is used.) Click the magnifying glass icon () to see in a new window a list of suggested controls that may be suitable to present the property in the Property field. Columns in the window identify the name of a control, a preview of in the read-only mode, and a preview in the read-write mode. To choose one control, click the radio button next to the row and click Save . (This window does not include all choices available to you. It includes only those controls with a non-blank Property Type value (on the HTML tab) that matches the Type of the property in the Property field. Click the pencil icon () to review the control identified in this field. Parameterized controlsWhen feasible, use a parameterized control for runtime efficiency and economy. See Atlas — Standard controls accepting parameters. Click the magnifying glass icon () to access a pop-up window that identifies each parameter. You can see the default value and preview the runtime appearance of the property. Enter parameter values as desired and click Save . If this input box is within a section that itself has parameters (defined on the Parameters tab of the Section form), you can reference a section parameter to supply a control parameter value, with the normal notation PARAM.Name. Width determined by Expected Characters LengthSome properties represented by a Text Input control have an Expected Length (in characters) defined on the Advanced tab of the Property form. Enter the special value The Specific formatsThese standard controls provide specific capabilities:
|
Behavior |
Optional. Leave blank if no dynamic form actions to other parts of the form are to occur based on user updates or values for this field. To establish a dynamic form action, click the magnifying glass icon () to open the Client Event Editor in a new dialog window. Complete the Client Event Editor to select an event ( Click the help icon ( ) on the Client Event Editor for assistance. For general information on this capability, see Harness, section, and flow action forms Help — Client Event Editor. Client event support is not available for harnesses, sections, or flow actions that use directives. |
Cell properties panel — General tab
Complete the General tab.
Field |
Description |
Visible: |
Select to determine when the property value is to appear. (If this setting is not applicable, the cell contents are blank.)
When a user submits an HTML form, an input field that is not visible is not included in the HTTP details. Don't make an input field invisible if your application expects user input on the field. |
Condition |
Appears if you selected
As a best practice, use the Condition Builder to edit this field. Click the magnifying glass icon ( ) to open the tool. See Using the Condition Builder to configure dynamic UI actions. |
Run on Client |
Appears when you enter a simple expression in the Condition field. Select to cause dynamic execution of the condition each time the value of a property stated in the condition changes. |
Edit Options | Select an edit mode for this control. The edit mode of the control takes precedence over section and harness settings.
|
Condition |
Optional. Appears only when you select Read Only in the Edit Options field. Enter or select one of the following:
As a best practice, use the Condition Builder to edit this field. Click the magnifying glass icon ( ) to open the tool. See Using the Condition Builder to configure dynamic UI actions. |
Required |
This box appears only for fields in cells on flow actions and sections. Select to require that (when the form appears at runtime in read-write mode) users cannot successfully submit the form if the field is blank. Selecting Required marks the label for this field with an orange asterisk () when the flow action form appears in read-write mode. (The asterisk also appears if the Label control's Value For field is not blank and the Label control's Required box is checked.) For sections, checking this box enables client-side format validation when this section is part of a harness form that has the Enable Client Side Validation box selected on the HTML tab. At runtime, users who leave this field blank and submit the form are notified immediately that the field is required; the form is not transmitted to the server. |
Wrap Text |
Select if the text in the cell is to be presented as multiple lines when the text is longer than the cell width. If the box is not selected, the text visible in the cell may appear truncated at runtime. |
Cell properties panel — Advanced tab
Complete the Advanced tab to control the presentation and visibility of the field.
Field |
Description |
Width |
As a best practice, use SmartLayouts to achieve uniform width of cells throughout your application's forms. You can set the width of SmartLayout templates using Skin rule. Optional. Enter a positive number for the width in pixels of this cell. (At runtime, normal browser processing for rendering tables determines the actual displayed width.) This field appears only when the cell is not controlled by SmartLayout column restrictions. In that case, you can also adjust the width this column directly:
|
Height |
As a best practice, use SmartLayouts to achieve uniform height of cells throughout your application's forms. You can set the width of SmartLayout templates using the . Optional. Enter a positive number for the height in pixels of this cell. (At runtime, normal browser processing for rendering tables determines the actual displayed height.) This field appears only when all columns in the Layout are not controlled by SmartLayout column restrictions (that is, all columns have the
|
Default Value |
Optional. Enter a constant value for the property value, a property reference, or an expression, to be used only when the user form or flow action form appears in read-write mode rather than read-only mode. Click the magnifying glass icon () to start the Expression Builder. Click the pencil button () to review a property. Choose a default value that speeds data entry. When the system renders a harness or section in read-only mode (for example because the read-write mode requires a privilege that the current user does not hold), the default value does not appear, because data entry is not permitted. |
Read-Write Style |
Optional. By default, when the user form or flow action form appears in read-only mode, the CSS style named The SmartPrompt list shows all styles that start with the word Click the pencil icon () to review the text file rule that defines the style sheet. Your application can override and extend this style sheet in an application text file rule. |
Read-Only Style |
Optional. By default, when the user form or flow action form appears in read-only mode, the CSS style named The SmartPrompt list shows all styles that start with the word Click the pencil icon () to review the text file rule that defines the style sheet. Your application can override and extend this style sheet in an application text file rule. |
Inline Style |
To apply inline styling to this cell only, type a CSS style definition in this field, or click the magnifying glass to access a Style Editor window. Styles you enter in this field supplement and override style elements defined in style sheets, according to normal CSS rules. Inline styles are recorded in the generated HTML for the form; they do not alter the CSS definitions. Using the Style EditorYou can select the font, color, font size, text align, vertical align, borders, margins, and other attributes of this cell using selection lists. The Style Editor maintains a preview of the resulting presentation. If you alter the style definition directly, click Apply to update the preview. Click OK to record the style defined with the Style Editor in the panel. |