Text Input control - General tab
A cell in a layout can present the value of a property, as display-only or as an input field. When you add a Text Input control, you can complete the General tab.
Field | Description |
---|---|
Property | Press the down arrow to select a property reference that identifies a single text value. |
Label |
Select to use the default label for the property or specify your own label. select or create a label. Use SmartPrompt to select a field value rule if you plan to localize the text. See About the Localization wizard. |
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. |
Placeholder | Select None if you do not want to display placeholder text. |
Helper text |
Select one of the following options to display helper text for the control:
When you select one of the options to show helper text, an empty field is displayed directly below the Helper text field. Enter the helper text for the control in this blank field. |
Visibility |
To control the visibility of the label, select one of the following:
If this section is to become part of navigation in a composite portal, you can make the header visible only when a specific space is the current space. Enter an expression here similar to the following: Then select the Run
visibility condition on client check box. |
Disable | Specify a condition for disabling the text input: |
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. |
Tour ID | Optional: Provide an ID for use in a guided tour. Use a combination of numbers, letters, and underscores. Pega Platform uses the Tour ID when it finds an anchor button during a tour stop anchor point. |
Test ID |
Optional: If authorized, you can provide a unique Test ID for use in your test suite in order to support better automated testing against any Pega application. When creating a control that supports Test ID, the Test ID field is initially blank. Use a combination of numbers, letters, and underscores, or click the Generate ID button to create a time stamp as a unique ID. The attribute data-test-id is then generated for the selected element. When you save an existing section, any supported controls that do not have a Test ID will have one automatically generated. You can override these with a custom ID later. After the test ID has been generated, you can view your Test ID in HTML or display it in the Live UI panel. You also have the option to have all controls that support Test IDs in a ruleset updated in bulk. A standard, out-of-the-box developer role, PegaRULES:SysAdm4, includes the privilege for Test ID. To disable Test ID for this role, modify the pxTestID privilege. |