Textbox

Use this widget to give the user the opportunity to enter free text no longer than a line, such as street address, e-mail, etc.

After you have dragged the Textbox form widget in your form, click the Edit button in the upper-right corner of the widget.
The Textbox window appears, displaying the following tabs:

Label and texts

On this tab, perform the following:

  1. In Label input field enter the label of the textbox.
    For example, Address or E-mail.
    The label is displayed above, to the right, or to the left of the textbox, depending on what settings you have made for the form. For more information, see Design forms » Settings.
  2. If needed, in Instructional text, enter instructions or explanatory text for the textbox.
    The text is displayed bellow the textbox.
  3. If required, in Predefined value, enter a predefined value for the textbox that is displayed in the box by default and the user can change it.
  4. If you want to make the textbox mandatory, select the Make required checkbox, .
    A textbox appears, where you enter the error message that is displayed, if the user does not fill out the textbox.
  5. If you click Advanced: Name for developers, you can change the automatically generated name that is used to refer to the widget in the code.
    To change it, click Change and enter the new name.

NOTE: You can add validation to the textbox. For example, you can require the user enters a valid email address.
For more information, see Validate the user input.

Limitations

On this tab, perform the following:

  1. In Range input fields, enter the minimum and maximum number of characters that a user can enter in the textbox.
    If you do not want to impose limits to the textbox, leave the Max input field empty and the Min input field 0.
  2. Enter an error message that is displayed, if the user enters less than or more than the defined limits.

Appearance

On this tab, perform the following:

  1. In Textbox size dropdown, select the size of the textbox.
    The textbox is always one line. The size of the textbox refers to its length.
  2. In CSS class input field, you can choose a class name for the textbox, if later you want to set a CSS style for this particular textbox.

When you are finished, click Save.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article

Checkboxes