Fields
Welcome to the Fields Page – your comprehensive guide to understanding and mastering the field system in Diterr. Fields are what transform your static designs into dynamic, interactive templates. They are the bridge between your visual layout and the data you collect from your users.
Whether you are building a simple contact form, a complex survey, a registration page, or a multi‑step application, fields are the essential building blocks that make it all possible. This guide will walk you through everything you need to know – from the fundamental concepts of Labels and Inputs, to the advanced features like validation and data handling.
Tip: Any Textbox, Quote, or Image element can be converted into a field by changing its Field Type in the Properties Panel.
What Are Fields?
In Diterr, a field is an element that has been configured to interact with data. While any Textbox, Quote, or Image element can display static content, a field is designed to capture, display, or process information.
Fields come in three main varieties:
- Labels – display static text (e.g., "Email Address", "Full Name").
- Inputs – accept user input (e.g., text fields, dropdowns, file uploads).
- Label & Input – a combination of both, providing a label alongside an input field.
Together, these field types form the foundation of every interactive template. They allow you to collect data, guide users through a process, and capture meaningful information.
Why Use Fields?
Fields are what make your templates dynamic rather than just visual. They enable you to:
- Collect user data – capture names, email addresses, phone numbers, and more.
- Create interactive forms – build contact forms, surveys, registration pages, and applications.
- Enable file uploads – allow users to submit images, documents, and other files.
- Provide choices – use dropdowns, radios, and checkboxes to present options.
- Validate input – ensure data is complete, correctly formatted, and meets your requirements.
- Process data – submissions are stored, viewable, and exportable.
In short, fields are what turn a beautiful design into a functional, data‑driven template.
Field Types
Diterr offers three field types, each serving a distinct purpose:
Label
The foundation of every form
A Label is a static text element that describes, identifies, or provides context for a form field. Think of it as a signpost – it tells the user what information they should enter, why it matters, and how they should format it. Without Labels, forms become confusing and frustrating to use. With Labels, forms become intuitive, accessible, and welcoming.
Labels are the unsung heroes of good form design. They do not accept input themselves – they are purely informational – but they are essential for creating a smooth user experience. A well‑designed Label can significantly reduce user errors, increase completion rates, and make your forms feel more professional.
- Clarity – tells the user exactly what is expected.
- Accessibility – screen readers rely on Labels to describe form fields.
- Guidance – provides instructions, examples, and context.
- Branding – contributes to the overall look and feel of your template.
Anatomy of a Label – Label Title, Description, Required Indicator, and Placeholder
When to Use a Label
Labels are used in almost every form. Here are the most common use cases:
Field Titles
Give a name to a form field.
- "Full Name"
- "Email Address"
- "Phone Number"
- "Date of Birth"
Section Headings
Group related fields together.
- "Personal Information"
- "Delivery Details"
- "Payment Information"
Helper Text
Provide additional guidance.
- "We'll never share your email."
- "Use the same name as on your ID."
- "This will be used for your account login."
Required Indicators
Visually mark required fields.
- "Email Address *"
- "Phone Number (optional)"
Default State: No Field Type
When you first create an element in Diterr – whether it is a Textbox, Quote, or Image – it has no field type assigned. This means the element is purely visual and decorative. It is not yet a Label or an Input, and it does not interact with form data.
- Flexibility – not every text element needs to be a field. You might use text for headings, descriptions, or purely decorative content.
- Intentionality – you have to explicitly decide when an element should become a field. This prevents accidental field creation and keeps your templates organised.
How to set a field type: Select the element, click the "Edit Field" button in the Properties Panel, choose Label from the Field Type dropdown, configure your settings, and click "Save changes".
Anatomy of a Label
A Label consists of several components that work together to provide a complete, usable, and accessible form field:
| Component | Description | Example |
|---|---|---|
| Label Title | The primary text that identifies the field | "Email Address" |
| Description | Helper text that provides additional guidance | "We'll never share your email" |
| Required Indicator | A symbol or text that marks the field as required | "*" or "(required)" |
| Placeholder | Placeholder text for the associated input | "john@doe.com" |
Label Settings
Label Title
The main text displayed on the Label. It is the primary way you communicate to the user what information is expected.
- Be clear and concise – use language that is easy to understand. Avoid jargon.
- Use sentence case or title case – choose one style and stick to it consistently.
- Keep it short – a few words are usually enough. Use Description for additional context.
- Think like your user – use the same phrasing your users would use.
Good examples: "Full Name", "Email Address", "Phone Number"
Avoid: "Enter your email address here" (too wordy), "Email" (less precise)
Description
Provides additional context, instructions, or guidance to the user. Appears below the Label Title in a smaller, lighter font.
- Provide examples – show users what a valid value looks like (e.g., "e.g., john@doe.com").
- Explain why – tell users why the information is needed.
- Set expectations – let users know what to expect.
- Keep it short – one or two sentences is usually enough.
Required Indicator
A symbol or text that visually marks the field as required. Appears next to the Label Title.
- "*" – the most common and recognizable indicator.
- "(required)" – explicit and clear for international audiences.
- "(optional)" – used to mark optional fields instead (less common).
- Be consistent – use the same indicator style across all fields.
Note: The Required Indicator is purely visual. It does not enforce validation – you must also set the field as required in the Input settings.
Placeholder
Placeholder text that appears inside the associated input field when empty. Provides an example of the expected format or content.
- Provide examples – show users what to type (e.g., "john@doe.com").
- Give formatting hints – indicate the expected format (e.g., "MM/DD/YYYY").
- Keep it short – placeholders should be brief and to the point.
- Do not rely on placeholders – they disappear when the user starts typing.
Important: Placeholders are not a substitute for Labels. Always use Labels to identify the field, and use Placeholders for examples or hints.
Creating a Label: Step‑by‑Step
- Add an Element – add a Textbox, Quote, or Image element to the canvas.
- Select the Element – click the element to select it.
- Open the Edit Field Modal – click the "Edit Field" button in the Properties Panel.
- Set the Field Type – select Label from the dropdown.
- Configure Label Settings – enter Label Title, Description, Required Indicator, and Placeholder.
- Save Changes – click "Save changes" to apply.
The Edit Field modal with Label selected as the Field Type
Label & Input Relationship
A Label is most commonly used together with an Input field. The Label provides context, and the Input captures the user's response. When you use a Label and an Input together, you create a complete, usable form field.
- Create a Label – with the desired Label Title, Description, etc.
- Create an Input – set its Associated Label to the Label you created.
- Benefits – improved accessibility, screen reader support, and visual grouping.
Best practice: Always link your Inputs to their Labels for better accessibility. This ensures screen readers correctly identify the relationship.
Accessibility Considerations
Labels are one of the most important elements for web accessibility. Follow these key principles:
- Always use Labels – every form input must have an associated Label for screen readers.
- Use clear, descriptive text – avoid vague terms like "Input" or "Enter text".
- Position Labels correctly – place them close to their associated input, typically above or to the left.
- Provide Required Indicators – clearly mark required fields so users know which are mandatory.
- Use Descriptions for additional context – provide formatting guidelines or explanations.
- Ensure colour contrast – Labels should have sufficient contrast against their background.
Best Practices
Keep It Simple
Labels should be clear, concise, and easy to understand. Avoid jargon, technical terms, and overly long text. If you need more context, use the Description field.
Be Consistent
Use consistent styling for all Labels in your template – font size, colour, alignment, and spacing. Consistency makes your form look professional and helps users navigate it more easily.
Use Active Language
Where appropriate, use active, action‑oriented language in Labels and Descriptions. For example, "Enter your email address" is more engaging than "Email Address".
Test with Users
If possible, test your forms with real users. Watch them interact with your Labels and see if they understand what is expected. Use their feedback to improve clarity.
Combine with Inputs
Always link Labels to Inputs. This improves accessibility and makes your forms more usable for everyone.
Use Required Indicators Wisely
If most fields are required, mark optional fields instead. This reduces visual noise and makes it easier for users to identify what they need to fill in.
Summary
Labels are the foundation of every well‑designed form. They provide clarity, accessibility, and guidance, making it easy for users to understand what is expected of them.
- Labels – static text elements that describe and identify form fields.
- Common uses – field titles, section headings, helper text, required indicators.
- Default state – elements start with no field type; you must explicitly set them to Label.
- Settings – Label Title, Description, Required Indicator, Placeholder.
- Accessibility – always link Labels to Inputs for better accessibility.
- Best practices – be clear, be consistent, and always use Labels with Inputs.
Now that you understand Labels, you are ready to build forms that are clear, accessible, and user‑friendly. 🎨
Input
The interactive heart of every form
An Input is an interactive field that accepts user input. It is the primary means by which users provide data to your template – whether they are typing text, selecting options, uploading files, or choosing dates. Inputs are what make your forms dynamic, functional, and useful.
Inputs come in many forms, each optimized for a specific type of data or user interaction. From simple text boxes to complex file uploads, Diterr provides a comprehensive set of input types that cover virtually every use case.
- Data collection – capture the information you need from users.
- User interaction – provide a way for users to engage with your form.
- Validation – ensure data is complete and correctly formatted.
- Flexibility – adapt to different data types and use cases.
Anatomy of an Input – Input Element, Field Name, Placeholder, and Validation
When to Use an Input
Inputs are used whenever you need to collect data from users. Here are the most common use cases:
Collecting Text Data
Free-form text data from users.
- Full name, email, phone number
- Address, city, postal code
- Comments, feedback, descriptions
Offering Choices
Present users with options to choose from.
- Country selection (dropdown)
- Gender selection (radio)
- Feature selection (checkboxes)
Uploading Files
Accept images, documents, and other files.
- Profile photos
- CV or resume uploads
- Supporting documents
Capturing Specific Data Types
Built-in validation and formatting.
- Email addresses (email validation)
- Phone numbers (tel validation)
- Dates (date picker)
- Numbers (min/max validation)
Default State: No Field Type
When you first create an element in Diterr – whether it is a Textbox, Quote, or Image – it has no field type assigned. This means the element is purely visual and decorative. It is not yet a Label or an Input, and it does not interact with form data.
- Flexibility – not every text element needs to be a field. You might use text for headings, descriptions, or purely decorative content.
- Intentionality – you have to explicitly decide when an element should become a field. This prevents accidental field creation and keeps your templates organised.
How to set a field type: Select the element, click the "Edit Field" button in the Properties Panel, choose Input from the Field Type dropdown, configure your settings, and click "Save changes".
Anatomy of an Input
An Input consists of several components that work together to collect and validate user data:
| Component | Description | Example |
|---|---|---|
| Input Element | The interactive field itself | <input type="text"> |
| Field Name / Key | The identifier for the field in form data | email |
| Default Value | A pre‑filled value | "john@doe.com" |
| Placeholder | Placeholder text inside the input | "Enter your email" |
| Options | For selects, radios, checkboxes – the list of choices | ["Option 1", "Option 2"] |
| Validation | Rules that enforce data quality | Required, min length, pattern |
| Associated Label | Link to a Label for accessibility | Label element ID |
Input Settings
Field Name / Key
The identifier for this field in the form data. When a form is submitted, the data is sent as key‑value pairs – the Field Name is the key.
- Be descriptive – choose a name that clearly indicates the purpose of the field.
- Use consistent case – use
snake_case,camelCase, orkebab-caseconsistently. - Avoid spaces – use underscores or camelCase instead of spaces.
- Keep it short – long names are harder to work with.
Good examples: full_name, emailAddress, date-of-birth
Input Type
Determines what kind of input the field accepts and how it behaves.
- Textbox – standard text input.
- Textarea – multi‑line text input.
- Select – dropdown menu.
- Radio – radio buttons.
- Checkbox – checkboxes.
- File – file upload.
- Number – numeric input.
- Email – email input with validation.
- Tel – telephone input.
- URL – URL input with validation.
- Date – date picker.
- Time – time picker.
Default Value
A pre‑filled value that appears in the input when the form is first loaded.
- Pre‑fill known data – if you know the user's email, pre‑fill it.
- Set a default selection – pre‑select a common option in a dropdown.
- Provide examples – show users what a valid value looks like.
Placeholder
Placeholder text that appears inside the input when it is empty.
- Provide examples – show users what to type (e.g.,
"john@doe.com"). - Give formatting hints – indicate the expected format (e.g.,
"MM/DD/YYYY"). - Keep it short – placeholders should be brief and to the point.
- Do not rely on placeholders – they disappear when the user starts typing.
Important: Placeholders are not a substitute for Labels. Always use Labels to identify the field.
Associated Label
Associate the Input with a Label element for accessibility. Screen readers will announce the Label when the Input is focused.
- Accessibility – screen readers announce the Label when the Input is focused.
- Usability – users can click on the Label to focus the Input.
- Best practice – always associate Inputs with Labels.
Options
For Select, Radio, and Checkbox inputs, define the list of choices.
- Enter each option on a new line in the Options field.
- Keep options concise – short, clear options are easier for users.
- Order matters – the first option is often the default.
Accepted File Types
For File Upload inputs, restrict which file types users can upload.
- Available types:
.jpg,.jpeg,.png,.gif,.webp,.bmp,.svg,.tiff,.ico,.avif,.heic - Best practice: Always restrict file types to the minimum necessary for your use case.
Input Types
Diterr supports a wide range of input types, each optimized for specific use cases. Below is a comprehensive guide to each type, including settings and use cases.
Textbox
A standard text input field – the most commonly used input type.
Use cases: Names, addresses, comments, search fields, any free‑form text.
Settings: Default Value, Placeholder, Min/Max Length, Pattern (Regex), Required, Custom Validation Message.
Select (Dropdown)
A dropdown menu that allows the user to choose one option from a list.
Use cases: Country selection, category picker, preference choice.
Settings: Options – define the list of choices (one per line). Default Value, Placeholder, Required, Custom Validation Message.
Radio
A set of radio buttons that allow the user to select exactly one option from a group.
Use cases: Single‑choice questions, gender selection, membership type.
Settings: Options – define the list of choices. Default Value, Required, Custom Validation Message.
Checkbox
A set of checkboxes that allow the user to select zero or more options.
Use cases: Multi‑choice questions, feature selection, terms and conditions.
Settings: Options – define the list of choices. Default Value, Required, Custom Validation Message.
File Upload
A file upload field that allows the user to select and upload a file.
Use cases: Profile photos, document submission, image uploads.
Settings: Accepted File Types – restrict to specific extensions (e.g., .jpg, .png, .pdf). Default Value, Required, Custom Validation Message.
Number
A numeric input field with validation for min, max, and step values.
Use cases: Age, quantity, price, any numeric value.
Settings: Min Value, Max Value, Step Value (e.g., 1, 0.5, 10). Default Value, Placeholder, Required, Custom Validation Message.
An email input field with built‑in email validation.
Use cases: Email addresses, user sign‑up, contact forms.
Settings: Default Value, Placeholder, Min/Max Length, Pattern (Regex), Required, Custom Validation Message.
Telephone (Tel)
A telephone input field – may include country code and formatting.
Use cases: Phone numbers, contact information.
Settings: Default Value, Placeholder, Min/Max Length, Pattern (Regex), Required, Custom Validation Message.
URL
A URL input field with built‑in URL validation.
Use cases: Website URL, social media profiles, links.
Settings: Default Value, Placeholder, Min/Max Length, Pattern (Regex), Required, Custom Validation Message.
Date
A date input field with a built‑in date picker and customizable date formats.
Use cases: Birthdays, event dates, appointments.
Settings: Date Format – choose from a variety of formats. Default Value, Placeholder, Required, Custom Validation Message.
Available Date Formats
| Format | Example |
|---|---|
| Y/M/D | 2025-07-16 |
| D/M/Y | 16/07/2025 |
| M/D/Y | 07/16/2025 |
| D-M-Y | 16-07-2025 |
| M-D-Y | 07-16-2025 |
| D M Y | 16 Jul 2025 |
| M D, Y | Jul 16, 2025 |
| YYYY-MM-DD | 2025-07-16 |
| DD-MM-YYYY | 16-07-2025 |
| MM-DD-YYYY | 07-16-2025 |
| MMMM Do, YYYY | July 16th, 2025 |
| Do MMMM, YYYY | 16th July, 2025 |
| dddd, MMMM Do YYYY | Wednesday, July 16th 2025 |
Time
A time input field for selecting a time of day.
Use cases: Appointment times, scheduling, opening hours.
Settings: Default Value, Placeholder, Required, Custom Validation Message.
Textarea
A multi‑line text input field for longer text content.
Use cases: Comments, feedback, descriptions, long‑form answers.
Settings: Default Value, Placeholder, Min/Max Length, Required, Custom Validation Message.
Creating an Input: Step‑by‑Step
- Add an Element – add a Textbox, Quote, or Image element to the canvas.
- Select the Element – click the element to select it.
- Open the Edit Field Modal – click the "Edit Field" button in the Properties Panel.
- Set the Field Type – select Input from the dropdown.
- Configure Input Settings – set Field Name, Input Type, Default Value, Placeholder, Options, Validation, etc.
- Save Changes – click "Save changes" to apply.
The Edit Field modal with Input selected as the Field Type
Label & Input
The complete form field in one package
A Label & Input is a combined field type that includes both a Label (static descriptive text) and an Input (interactive field) in one element. Instead of creating separate Label and Input elements and linking them together, you can create a single element that does both.
Think of it as a pre‑assembled form field – it comes with everything you need: the title, the description, the required indicator, and the interactive input itself. This makes it ideal for simple, straightforward forms where each field has a clear label and you want to keep things compact and consistent.
- Efficiency – one element instead of two, saving time and reducing complexity.
- Compactness – ideal for tight layouts where space is at a premium.
- Consistency – Label and Input share the same container and styling, ensuring a unified look.
- Automatic linking – the Label is automatically associated with the Input, improving accessibility.
Anatomy of a Label & Input – Label Title, Description, Required Indicator, and Input Element
When to Use Label & Input
Simple Forms
Contact forms, registration forms, login forms, survey forms where each field has a clear, single label.
Why: One‑to‑one relationship between Label and Input. Label & Input makes this relationship explicit and easy to manage.
Compact Layouts
Sidebar forms, popup modals, mobile‑optimised layouts where space is limited.
Why: Label & Input is more compact than separate Label and Input elements, saving valuable real estate.
Consistent Styling
Branded forms, multi‑step forms where every field needs to look identical.
Why: Label and Input are part of the same element, inheriting the same styling – same background, border, padding, and spacing.
Quick Prototyping
Rapid prototyping, early‑stage design mockups, proof‑of‑concept forms.
Why: Add a field in one step, configure both Label and Input settings in the same modal, and move on to the next field.
Default State: No Field Type
When you first create an element in Diterr – whether it is a Textbox, Quote, or Image – it has no field type assigned. This means the element is purely visual and decorative. It is not yet a Label, an Input, or a Label & Input, and it does not interact with form data.
- Flexibility – not every text element needs to be a field. You might use text for headings, descriptions, or purely decorative content.
- Intentionality – you have to explicitly decide when an element should become a field. This prevents accidental field creation and keeps your templates organised.
How to set a field type: Select the element, click the "Edit Field" button in the Properties Panel, choose Label & Input from the Field Type dropdown, configure your settings, and click "Save changes".
Anatomy of a Label & Input
A Label & Input combines all the components of both a Label and an Input into a single, unified element:
| Component | Description | Example |
|---|---|---|
| Label Title | The main text that identifies the field | "Email Address" |
| Description | Helper text that provides additional guidance | "We'll never share your email" |
| Required Indicator | A symbol or text that marks the field as required | "*" |
| Input Element | The interactive field itself | <input type="text"> |
| Field Name / Key | The identifier for the field in form data | email |
| Default Value | A pre‑filled value | "john@doe.com" |
| Placeholder | Placeholder text inside the input | "Enter your email" |
| Options | For selects, radios, checkboxes – the list of choices | ["Option 1", "Option 2"] |
| Validation | Rules that enforce data quality | Required, min length, pattern |
Settings
A Label & Input includes all settings from both Label and Input.
Label Settings
- Label Title – the main text displayed
- Description – additional helper text
- Required Indicator – marks the field as required
- Placeholder – text shown inside the input
Input Settings
- Field Name / Key – identifier for form data
- Input Type – textbox, select, radio, checkbox, etc.
- Default Value – pre‑filled value
- Options – for selects, radios, checkboxes
- Accepted File Types – for file uploads
- Validation – required, min/max length, pattern, etc.
- Custom Validation Message – override default error message
Creating a Label & Input: Step‑by‑Step
- Add an Element – add a Textbox, Quote, or Image element to the canvas.
- Select the Element – click the element to select it.
- Open the Edit Field Modal – click the "Edit Field" button in the Properties Panel.
- Set the Field Type – select Label & Input from the dropdown.
- Configure Label Settings – enter Label Title, Description, Required Indicator, and Placeholder.
- Configure Input Settings – set Field Name, Input Type, Default Value, Options, Validation, etc.
- Save Changes – click "Save changes" to apply.
The Edit Field modal with Label & Input selected as the Field Type
Label & Input vs. Separate Label + Input
Here's how Label & Input compares to using separate Label and Input elements:
| Aspect | Label & Input | Separate Label + Input |
|---|---|---|
| Number of elements | One | Two |
| Management | Simpler – one element to manage | More complex – two elements to link and style |
| Space | More compact – label and input tightly grouped | Less compact – may require more vertical space |
| Styling | Consistent – shared container | Requires manual alignment and styling |
| Accessibility | Automatic linking | Manual linking required |
| Flexibility | Limited – label is always above the input | Flexible – can position label anywhere |
Choose Label & Input when:
- You want to keep your form simple and compact.
- You need consistency and minimal management.
- You are building a straightforward form.
Choose separate Label + Input when:
- You need more layout flexibility (e.g., label to the left of input).
- You are building a complex form with multiple elements per row.
- You need to reuse Labels or Inputs independently.
Best Practices
Use for Simplicity
Label & Input is ideal for simple, straightforward forms where each field has a clear label. For complex forms with multiple labels or nested structures, consider using separate Label and Input elements for greater flexibility.
Keep It Clean
Avoid overloading with too much information. Keep Label Titles short, Descriptions brief, and Placeholders concise.
Maintain Accessibility
The Label is automatically linked to the Input, ensuring screen readers correctly identify the relationship. No additional setup is required.
Use Consistent Styling
Apply consistent styling across all fields in your form to create a cohesive, professional look. Label & Input makes this easier since label and input share the same container.
Test Thoroughly
Preview your fields to ensure they display correctly and validation works as intended. Check alignment of Label Title, Description, and Input.
Summary
The Label & Input field type brings together the best of both worlds – the descriptive power of a Label and the interactivity of an Input – in a single, compact element. It is the ideal choice for simple, consistent, and space‑efficient forms.
- Combines Label and Input into one element.
- Includes all Label settings (Title, Description, Required Indicator, Placeholder).
- Includes all Input settings (Field Name, Input Type, Default Value, Options, Validation, etc.).
- Automatic linking – label and input are always correctly associated.
- Ideal for – simple forms, compact layouts, consistent styling, quick prototyping.
- Best practice – use for straightforward, single‑field forms where space is limited.
Now that you understand Label & Input, you have a complete toolkit for building forms – from simple contact forms to complex surveys. Choose the field type that best fits your needs and start building. 🚀
Validation
Validation ensures that the data users submit meets your requirements. Diterr provides a comprehensive validation system that works both on the frontend (for immediate feedback) and on the backend (for security).
Required Fields
Mark a field as required to ensure users cannot submit the form without filling it in. When a required field is left empty, the user will see an error message (default or custom) and the form will not submit.
How to enable: Toggle the Required checkbox in the Properties Panel.
When to use: Always use for fields that are essential to your form's purpose.
Min / Max Length
For text inputs (textbox, email, tel, URL, textarea), you can set a minimum and maximum character length.
- Min Length – the minimum number of characters required.
- Max Length – the maximum number of characters allowed.
How to enable: Enter values in the Min Length and Max Length fields in the Properties Panel.
Use cases: Enforce a strong password (min length), limit a comment (max length).
Pattern (Regex)
For advanced validation, you can define a custom regular expression (regex) pattern that the input must match.
^\d{5}$ – exactly 5 digits (US ZIP code)
^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$ – email format
How to enable: Enter a regex pattern in the Pattern field in the Properties Panel.
Use cases: Enforce specific formatting (e.g., postal codes, product codes, custom IDs).
Min / Max Values (Number)
For numeric inputs, you can set a minimum and maximum value.
- Min Value – the lowest allowed value.
- Max Value – the highest allowed value.
- Step Value – the increment step (e.g., 1 for whole numbers, 0.5 for decimals).
How to enable: Enter values in the Min, Max, and Step fields for Number-type inputs.
Use cases: Age restrictions (min 18), quantity limits (max 10), price ranges (min 0.01).
Custom Validation Messages
You can override the default error message with a custom message that is more helpful or specific to your users.
✗ Instead of "Invalid value"
✓ Use "Please enter a valid email address (e.g., john@doe.com)"
How to enable: Enter your custom message in the Custom Validation Message field in the Properties Panel.
Best practice: Use custom messages to explain what the user did wrong and how to fix it.
Best practice: Always provide clear, specific validation messages that tell users exactly what is expected (e.g., "Please enter a valid email address" instead of "Invalid input").
Field Settings
Every field comes with a set of settings that control its behavior and appearance:
| Setting | Description | Applies To |
|---|---|---|
| Field Name / Key | Unique identifier for the field in form data. | All |
| Default Value | Pre‑filled value for the input. | All Inputs |
| Placeholder | Hint text shown inside the input. | Textbox, Textarea, etc. |
| Associated Label | Link to a Label element for accessibility. | All Inputs |
| Options | List of choices for Select, Radio, and Checkbox. | Select, Radio, Checkbox |
| Accepted File Types | Restrict file uploads to specific extensions (e.g., .jpg, .png). | File Upload |
| Date Format | Customize how the date is displayed. | Date |
How to Create a Field
There are two ways to create a field in Diterr:
Method 1: Convert an Existing Element
- Select a Textbox, Quote, or Image element on the canvas.
- In the Properties Panel, locate the Field Type dropdown.
- Choose Label, Input, or Label & Input.
- The element will transform into a field with additional settings.
Tip: Converting an existing element preserves its styling and position, making it the fastest way to add fields to an existing design.
Converting a Textbox element to a Label field using the Field Type dropdown in the Properties Panel
Method 2: Add a New Field Directly
- Click the Add Field button in the Toolbar.
- Choose the field type: Label, Input, or Label & Input.
- A new field will appear on the canvas with default settings.
- Adjust the settings in the Properties Panel as needed.
Tip: Adding a field directly is great for starting from scratch – you get a clean, unstyled field ready for customisation.
Adding a new field directly from the Toolbar's Add Field button
Best Practices
Naming Conventions
- Use clear, descriptive names for your fields (e.g.,
email_address,full_name). - Avoid spaces and special characters – use underscores (
_) instead. - Be consistent – if you use camelCase, use it everywhere.
- Keep names reasonably short but descriptive.
Accessibility
- Always link Inputs to Labels using the Associated Label setting.
- Use clear, descriptive Label Titles that explain what the input is for.
- Provide helpful Description text to guide users.
- Mark required fields with a Required Indicator (e.g., "*").
Validation Strategies
- Use Required sparingly – only for fields that are truly mandatory.
- Provide Custom Validation Messages that are helpful, not technical.
- Test validation with real user scenarios (e.g., invalid emails, too-short passwords).
- Use Pattern for specific formats (e.g., phone numbers, postal codes).
User Experience
- Group related fields together (e.g., personal information, contact details).
- Use Placeholders to provide examples (e.g., "jane@example.com").
- Keep forms concise – ask only for what you need.
- Provide clear Submit buttons and feedback on submission.
Previewing Your Fields
Before publishing your template, it's essential to preview how your fields will appear and behave for users. Diterr provides a Preview Mode that simulates the user experience.
- Preview Mode – click the Preview button in the top bar to see your template as users will.
- Interact with fields – fill out inputs, select options, and upload files.
- Validation – test validation by submitting incomplete or invalid data.
- Layout – check that labels, inputs, and help text are properly positioned.
- Publish – once satisfied, click Publish to generate a shareable link.
Pro tip: Always test your fields with real user scenarios. Try submitting with and without required fields, test file uploads, and ensure validation messages are clear and helpful.