Components - Textbox

Standard HTML text field, the properties that this component supports are:

  • Name: the name of the component. Please remember that this property must a have a non-empty and unique value within a form.
  • Caption: the caption associated with this component.
  • Required: this property specifies that the current component must have a value, otherwise the form will not be submitted.
  • Size: the size that the text box will have upon display.
  • MaxSize: whenever a text field is submitted, no more that MaxSize number of characters are saved in the database.
  • ValidationRule: verifies that the text in the text area matches a certain pattern, defined by the validation rule. Currently defined validation rules are:
    • none: no validation rule is applied
    • e-mail: checks for standard e-mail format
    • numeric: checks for numbers
    • alphanumeric: checks if the inputed string contains only numeric and alpha chars
    • alpha: checks if the inputed string only contains alpha chars
    • custom: can be used in combination with other validation rules and will extend the validation with the specified chars
  • * Validation Message: whenever the validation rule is not met, this message will show up in the front-end part of RSForm!Pro (that's when a user wants to submit something using the form that you've just created). Be advised that this message is also shown when the Required constraint is not met (let's suppose that we have a text box with no validation rule and with the Required property set to `Yes'. If the user tries to submit an empty text box, the validation message will appear and the the form will not be submitted).
  • ValidationExtra: here you can type the extra characters that you wish the validation rule to accept(for example if you wish to accept accented characters or special characters with the alpha/alphanumeric validation rule).
Note:
Inside the Default Value area you can also use custom PHP codes in between the // and // tags. For custom scripting examples please refer to the Custom Scripting section.