In this block, the user can enter a word or a short phrase, like their first or last name.
The “Short text” field allows a maximum of 255 characters.
Enter the field name or the prompt.
- To add an image to the title, click .
- To add a comment or hint to the prompt, click + Add comment. The comment is displayed in a small font.
- To format the text of your prompt or comment, use Markdown.
- Question ID
Use the question ID for pre-filling forms.
You can edit the ID. All questions in the same form must have unique IDs.
- Required prompt
Turn on this option to mark a required prompt with an “asterisk”. If the user doesn't respond to this prompt, they can't submit the completed form.
- Hidden question
Turn on this option if you don't want to show a prompt on the form. You can use hidden questions for sending technical parameters.Important. Don't turn on Hidden question and Required prompt at the same time, or users won't be able to submit the completed form.
- Limit the number of characters
Set the minimum and maximum response length.Restriction. No matter what value is set for the maximum response length, the “Short text” field can't have more than 255 characters.
- Add a hint
Turn on this option to suggest response options from a directory when the user enters text. Select the hint type:
- Department, Team, User: Users or departments from the organization's address book in Yandex.Connect.
- Address, Cities, Countries: Hints from the address directory.
- Email addresses: The user's email address.
Use validation if you need to check that the entered response matches the specified format. For example, you can check that the response is in Russian or that there are no forbidden characters in it. If the response doesn't match the specified format, a warning appears that the field is filled out incorrectly.
Select a validation method:
- No validation: The response can contain any characters. If you select this validation method, the prompt type changes to “Short text”.
- Validation of fractional numbers: The response must contain an integer or a decimal. If you select this validation method, the prompt type changes to “Number”.
- TIN validation: The response must contain a valid taxpayer ID. If you select this validation method, the prompt type changes to “TIN”.
- Validation of letters from the Cyrillic alphabet: The response must only contain letters of the Russian alphabet, numbers, and spaces. If you select this validation method, the prompt type changes to “Short text”.
- Validation using regular expressions: You can make your own regular expression for checking responses. Examples:
- A regular expression that only allows Latin letters, numbers, and spaces:
- A regular expression that allows any characters except numbers and certain special characters:
If you select this validation method, the prompt type changes to “Short text”.