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 Designing a form » Step 4.
    2. In Instructional text, enter instructions or explanatory text for the textbox, if needed.
      The text is displayed bellow the textbox.
    3. In Predefined value, enter a predefined value for the textbox that is displayed in the box by default and the user can change it, if required.
    4. Select the Make required checkbox, if you want to make the textbox mandatory.
      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.
    6. NOTE: You can add validation to the textbox. For example, you can require the user enters a valid email address.
      For more information, see Validating 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.

For more information about advanced configuration options, see Advanced configuration of widgets.

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK