|
![]() |
A cell in a layout can present the value of a property, as display-only or as an input field. Follow these instructions to control the presentation of a property value in a Text Input control.
Configure styles for the Text Input control using the Skin rule. See Skin form — Styles tab — Components — Inputs.
The Text Input control uses the auto-generated control pxTextInput. Its look and behavior are governed by the rule form's Control tab. The Parameters tab is not available and the HTML cannot be edited. As a best practice, do not modify a copy of the rule. Instead, use the Parameters dialog available in the control's Cell Properties panel while designing a section, flow action, or harness. See Completing the Control tab.
If you are building a Mobile application, see Supported user interface features for mobile applications.
As a best practice, use the pxTextInput control in new development, rather than the non-auto-generated Default controls (which remains available and supported in V6.X). See About the Input Box control.
The UI Gallery landing page contains a working example of this control. To view and interact with this example and review its configuration, select
> User Interface > UI Gallery and select Text Input in the Controls group.
1. Drag and drop the Text Input control
Click the down-arrow () at the right end of the Basic control group (
) and select the Text Input control (
). Drag the control to the cell or header that is to contain the property value. When the pointer changes shape to indicate that a single cell is selected, release the mouse button to drop the control.
If the cell is not empty, the dropped control replaces the current contents of the cell
2. Complete the 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 |
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 ( 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. For a harness, the property generally must be on the primary page of the rule — the page corresponding to the Applies To key part of the rule. However, a section within the harness may have a different Applies To class, and that section can include properties from its own class.
|
Control |
Click the pencil icon ( Customizing the controlThe control's default parameters are the ones you'll most likely use in your UI design for both edit and read-only modes. If you wish, you can customize the control within the context of the section that contains it. For example, you can:
Your edits apply only to the control within the section that contains it and do not update the underlying rule. You can add multiple controls of the same type within a section, each with its own custom settings. Do the following to customize an auto-generated control in a section:
|
Behavior |
Displays only if dynamic behavior for this control was configured prior to V6.3. In V6.3 and above, click the magnifying glass icon ( To modify an existing dynamic form action based on user updates or values for this field, click the magnifying glass icon ( Click the help icon ( Client event support is not available for harnesses, sections, or flow actions that use directives. |
3. Complete the Cell Properties panel — General tab
Complete the General tab.
Field |
Description |
Visible | Optional. Select to determine when the property value is to appear. (If this setting is not applicable, the cell contents are blank.)
|
Condition |
As a best practice, use the Condition Builder to edit this field. Click the magnifying glass icon ( |
Run on Client |
Appears when you enter a simple expression in the Condition field. Select to cause evaluation and execution of the condition each time the value of a property stated in the condition changes. If unselected, the expression is evaluated and the condition executed when the form is initially presented and whenever the form is refreshed. By default, controls that allow typing, such as Text Input, are evaluated when the user leaves the field. To re-evaluate conditions as the user types, use the Apply Conditions action with a Keyboard event. See Control Form — Completing the Control tab. |
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.
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. |
Edit Options | Select an edit mode for this control. The edit mode of the control takes precedence over section and harness settings.
|
Read-Only Condition |
![]()
As a best practice, use the Condition Builder to edit this field. Click the magnifying glass icon ( |
4. Complete the Cell properties panel — Advanced tab
Complete the Advanced tab to control the presentation and visibility of the field.
Field |
Description |
Width |
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 |
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 |
Click the magnifying glass icon (
|
Read-Write Style |
Optional. Type the name of the custom style, for example, custom_stylename, that you want to apply to this cell when the user form or flow action form appears in read-write mode. Define custom styles in the Skin rule. See Skin form — Custom. |
Read-Only Style |
Optional. Type the name of the custom style, for example, custom_stylename, that you want to apply to this cell when the user form or flow action form appears in read-only mode. Define custom styles in the Skin rule. See Skin form — Custom. |
Inline Style |
Optional. Enter CSS code for an inline style. For guided assistance in composing a style definition, click the magnifying glass icon ( |
Copying, deleting, duplicating, or moving an Text Input control