Single Line

Single Line

Single Line Field

The Single Line field is a form field for concise input, typically accommodating short text or numeric data. For example, you can collect unique identification numbers with a character limit and specific input format.

In the Properties of the field, several customizable features enhance its functionality and user experience:

Placeholder Text
You have the option to provide placeholder text, offering a brief hint or example to guide respondents on the expected input. This aids clarity and encourages accurate responses.

Character Limit
The field can be configured with a specified character limit, ensuring that responses remain within a defined range.
The range is between 0 - 255 characters. 
Restrict input on reaching the character limit: When enabled, respondents cannot enter a value beyond the configured range. An error message is displayed as soon as the limit is reached.

Initial Value
Provide the initial value to be displayed when the form loads. This allows you to prefill the field with default content, streamlining the data entry process for respondents.

Validation
  1. Mandatory: Ensure that respondents cannot submit the form without entering the data in this field.
  2. No Duplicates: Prevent the submission of identical entries.
Input Type
You can choose the Input Type in which the respondents can provide input in the Single Line field from the following options:
  1. Any Character
  2. Letters Only
  3. Letters and Numbers
  4. Letters, Numbers and Spaces
  5. Letters and Spaces
  6. Custom Entry Format  
If you are looking to collect field responses in a specific format (for example, an ID number which is a combination of alpha-numeric characters), choose the Custom Entry Format option in the Input type of the Single Line field properties.

Collect field responses in the desired format

Watch a quick video to understand a simple use-case where the Entry Format option can be used.



To use this option,
  1. Go to the Properties of the Single Line field.

  2. Under Input Type, select Custom Entry Format from the dropdown.
    Custom Entry Format

  3. Under Entry Format, enter the format in which you wish to receive the responses using the below denotations:

    W

    Uppercase letters

    w

    Lowercase letters

    L

    Any letters (case insensitive)

    d

    Digits

    *

    Alphanumeric characters

    @  #  $  %  ^  &  *  (  ) -  _  +  =  \ |  :  '  "  ,  .  / Space

    Special characters 

  4. To accept any of the above mentioned characters as input from respondents, you must prefix   with these characters as shown:
\W  denotes the alphabet W
\w   denotes the alphabet w
\L   denotes the alphabet L
\d  denotes the alphabet d
  \*  denotes the character *
  \\  denotes the character \


Check out the following examples to understand better:

If you wish to collect driver's license number with one alphabet followed by 12 numbers (Eg: S-514-778-616-977), you must enter the pattern as follows in the Single Line field Properties:

W-ddd-ddd-ddd-ddd
Entry Format - Example 1

 

If you wish to collect the Employee IDs of respondents in the format:
ZYK-pm-0497 (ZYK - 2 Lower case alphabets - 4 Digits)

You must enter the pattern as follows in the  Single Line  field Properties:
ZYK-ww-dddd
Entry Format - Example 2
If you wish to collect a Product Code in the format:
Wd-36-fp\6546 (Wd - 2 Digits - 2 Lower case alphabets \ 4 Digits)

You must enter the pattern as follows in the Single Line field Properties:
\W\d-dd-ww\\dddd
Entry Format - Example 3


Alternatively, you can generate a format in which you wish to receive the field input. To do so,

  1. Click the Generate Format option in the right corner of Entry Format under  Properties.

  2. In the pop-up, enter an example in the desired format.

    For example: If you wish to collect the PAN of your respondents in a format with the first 5 characters being alphabets, followed by 4 numeric values, and ending with an alphabet, you can enter an example of the format as shown:
    Format Generator - Example 1

    NotesNote: If you wish to have a static content in the format, you must enclose the content in curly braces {}.
    For example, {ZYK} - 123 will generate the format  ZYK - ddd.

    Format Generator - Example

  3. Click Generate.

  4. Click Use Format to use the generated format under Entry Format.

    You can customize the default error message  Entry does not match the required format under 
    Settings Custom Messages Field Validation Messages to help your respondents enter the response in the required format.

Input Text Case
You have the flexibility to control the visual presentation of the entered text, aligning it with the intended formatting standards for your form.
  1. System Default
  2. Upper Case
  3. Lower Case
  4. Proper Case
Learn more about Input Text Case.