Skip to main content

 –

Configuring a Text input control

Suggest edit Updated on December 1, 2021
Applicable to Theme Cosmos applications

Help users enter custom text in a form by creating a simple text field. The Text input control is a staple form element that you can format and style according to the needs of your application.

For example, if the control holds a password, you can choose to hide the text that the user enters under a string of bullets.
Before you begin: Add a Text input control to the layout.

For more information, see Adding UI components to a view.

  1. Open the view with the control that you want to edit.
    For more information, see Accessing views in your application.
  2. In the configuration pane on the right side of the window, hover over the control, and then click the Edit icon.
  3. On the General tab, in the Property field, define the property that you want to associate with the control:
    • To select an existing property, in the Property field, press the Down arrow key, and then click the property.
    • To create a new property, click the Open icon next to the Property field, and then configure a new property record. For more information, see Properties.
  4. In the Default value field, define the text that appears in the control automatically:
    • To use a fixed value, enter the text manually.
    • To tie the default value to an expression, click Open expression builder, and then define the expression that you want to use.
  5. On the Presentation tab, in the Min characters and Max characters fields, define the length of the control.
  6. Optional: To define a custom size for the text field, in the Specify size field, click Custom, and then define the size of the control in pixels or as a percent ratio.
  7. In the Type field, select the type of content that you want to collect in the text field, and then configure the format in which to display the text.For example: To create a control that hides the text that the user enters behind bullets, select Text, and then in the Obfuscated field, select Yes.

    Note: The available control types vary depending on whether your control is editable or not.

  8. Click Apply.
What to do next: Configure the remaining settings. For more information, see Configuring common control settings.
Did you find this content helpful? YesNo

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us