Validation
Metaforms supports a wide range of Validation Scenarios in your surveys.
Let's take a look at all of them:
Radio question with text input field and email validation using regex Radio question with one option containing text input field for email address and standalone decline option. Email validation ensures proper format ([email protected]) using regex when email option is selected. Validation: Email format validation using regex applied to text input field when email option is chosen.
Radio question with text input fields and format-specific validation (phone format, email format, minimum character length)
Radio question with text input field for each option. Different validation applied based on selection: phone format (XXX-XXX-XXXX), email format validation, or minimum character length for postal address. Validation: Format-specific validation triggers based on selected radio option - phone pattern, email regex, or minimum character count.
Radio question with rows with conditional validation based on previous text question and number question Radio question with three options. Selection of one particular option triggers validation against previous responses - previous text question cannot be equal to some string AND previous number question must be at-least equal to some number. Validation: One particular selection restricted based on previous text question and previous number question.
Radio question with text input field and date format validation Radio question with one option containing text input field for date entry and standalone alternative option. Date format validation ensures MM/DD/YYYY format when date option is selected. Validation: Date format validation applied to text input field when date option is chosen.
Radio question with text input field and minimum character validation Radio question with one option containing text input field for feedback and standalone decline option. Minimum character validation (20 characters) applied to text input when feedback option is selected. Validation: Minimum character count validation applied to text input field when feedback option is chosen.
Radio question with conditional validation based on previous number question Radio question with three options. Selection of one triggers validation against previous income question - previous number question must be at least equal to specified minimum amount.
Validation: Radio question option selection restricted based on minimum income requirement from previous question.
Radio question with text input field and ZIP code format validation using regex Radio question with one option containing text input field for ZIP code entry and two standalone alternative options. ZIP code format validation ensures 5-digit numeric format using regex (^\d{5}$) when home delivery option is selected.
Validation: ZIP code format validation using regex applied to text input field when home delivery option is chosen.
Radio question with text input field and time format validation with range restriction Radio question with one option containing text input field for time entry and standalone alternative option. Time format validation ensures HH:MM format and restricts time range between 9:00 AM and 5:00 PM when preferred time option is selected.
Validation: Time format validation (HH:MM) and time range validation (09:00-17:00) applied to text input field when preferred time option is chosen.
Radio question with text input field and currency format validation Radio question with one option containing text input field for budget amount and standalone alternative option. Currency format validation ensures proper dollar format with optional commas and decimals (e.g., $5,000.00) when budget option is selected.
Validation: Currency format validation applied to text input field when budget option is chosen.
Radio question with text input field and URL format validation
Radio question with one option containing text input field for URL entry and two standalone alternative options. URL format validation ensures proper URL format beginning with http:// or https:// when portfolio website option is selected.
Validation: URL format validation applied to text input field when portfolio website option is chosen.
Radio question with conditional validation based on previous number question Radio question with three options. Selection of one of the option triggers validation against previous question - previous number question must be at least some number.
Validation: Selection of one of the option restricted based on number entered in the previous question.
Radio question with text input field and minimum word count validation Radio question with one option containing text input field and standalone alternative option. Minimum word count validation (5 words) applied to text input when option with text input field is selected.
Validation: Minimum word count validation applied to text input field when option with text input field is chosen.
Radio question with text input field and alphanumeric character validation using regex Radio question with one option containing text input field for username entry and standalone alternative option. Alphanumeric character validation ensures only letters, numbers, and underscores are allowed using regex (^[a-zA-Z0-9_]+$) when create username option is selected.
Validation: Alphanumeric character validation using regex applied to text input field when create username option is chosen.
Radio question with number input field and range validation
Radio question with one option containing number input field for quantity entry and standalone alternative option. Range validation ensures quantity is between 1 and 100 when number of units option is selected.
Validation: Range validation (1-100) applied to number input field when quantity option is chosen.
Radio question with time input fields and time range validation
Radio question with two options containing time input fields for different time slots and one standalone alternative option. Time format validation (HH:MM) and specific time range validation applied based on selected option - morning (09:00-12:00) or afternoon (13:00-17:00).
Validation: Time format validation and time range validation applied to respective input fields when time slot options are chosen.
Checkbox question with conditional option disabling based on previous question
Checkbox question with four financial product options. Two specific options are disabled/prevented from selection if respondent's age from previous question is less than 25.
Validation: Specific options disabled based on age criteria from previous question.
Checkbox question with dependent option selection validation
Checkbox question with paired options. Selecting certain primary options automatically requires selection of corresponding secondary options.
Validation: Dependent selection validation ensures secondary options must be selected when corresponding primary options are chosen.
Checkbox question with value calculation validation based on previous question Checkbox question with options that have associated values. Total value of selected options is calculated and validated against limit specified in previous question.
Validation: Sum of selected option values cannot exceed limit specified in previous question.
Checkbox question with conditional mandatory selection validation Checkbox question with multiple options. If specific combination of options is selected, then additional option must also be selected.
Validation: Selecting certain combination of options automatically requires selection of additional option.
Checkbox question with time commitment validation based on previous question
Checkbox question with options that have associated time commitments. Total time commitment of selected options is calculated and validated against available time specified in previous question.
Validation: Sum of selected option time commitments cannot exceed available time specified in previous question.
Checkbox question with multiple conditional selection validation rules Checkbox question with multiple options. Two different validation rules apply: selecting one specific option requires selection of another specific option, and selecting different specific option requires selection of at least minimum number of additional options.
Validation: Multiple conditional selection rules - one option requires specific companion option, another option requires minimum number of additional selections.
Number question with ZIP code format validation using verify
Number input field with 5-digit ZIP code format validation using verify="zipcode" to ensure exactly 5 numeric digits.
Validation: ZIP code format validation ensures exactly 5 numeric digits using regex pattern.
Checkbox question with conditional option disabling based on previous question Checkbox question with multiple delivery options. Specific options are disabled/prevented from selection if ZIP code from previous question matches certain values.
Validation: Specific options disabled based on ZIP code criteria from previous question.
Checkbox question with ranking functionality - select items and rank them in order of preference Checkbox question with rank input fields for each option. System enforces exactly 3 selections with unique ranking numbers 1, 2, and 3.
Validation: Exactly 3 items must be selected and ranked using unique consecutive numbers.
Checkbox question with hierarchical dependency validation
Checkbox question with multiple options that have tiered dependency requirements. Selecting certain options automatically requires selection of prerequisite options, with some options requiring multiple prerequisites.
Validation: Hierarchical dependency validation ensures prerequisite options are selected when dependent options are chosen.
Checkbox question with cost calculation validation based on previous question
Checkbox question with options that have associated costs. Total cost of selected options is calculated and validated against budget limit specified in previous question.
Validation: Sum of selected option costs cannot exceed budget limit specified in previous question.
Checkbox question with level-based selection restriction
Checkbox question with leveled options. Selection is restricted based on user level from previous question - respondent can only select modules up to one level higher than their current level.
Validation: Module selection restricted based on user level criteria from previous question.
Checkbox question with grouped category validation
Checkbox question with options organised into multiple categories. Validation ensures exactly one option is selected from each category group.
Validation: One selection required from each category group - cannot proceed without selecting from all categories.
Checkbox question with text input fields, maximum selection limit, and time validation Checkbox question with options that each have associated text input fields for time entry. Maximum of 3 selections allowed. Time format validation and range validation (06:00-19:59) applied to text inputs for selected options.
Validation: Maximum 3 selections enforced. Time format and range validation applied to text input fields for selected options only.
Checkbox question with multiple complex dependency validation rules Checkbox question with multiple options that have different types of dependency requirements. Some options require selection of one of multiple alternatives, others require specific single options, and some require minimum number of additional selections.
Validation: Multiple dependency validation rules - alternative selection requirements, specific selection requirements, and minimum selection count requirements. Programming Note (PN):
If Personal Training is selected, must also select Gym Membership or Nutritional Planning
If Recovery Sessions is selected, Gym Membership must be selected
If Health Monitoring is selected, at least 2 other services must also be selected
Checkbox in first column and radio question in second column with validation and exclusive option
First column contains checkboxes for multiple selections, second column contains radio buttons for single selection. Radio buttons only available for services checked in first column. Exclusive option in last row - when selected, prevents selection of other options and only allows exclusive selection in radio column.
Validation: Radio button selection restricted to items selected in checkbox column. Exclusive option prevents selection of other items in both columns.
Hybrid grid question with checkbox column and radio column featuring exclusion validation and "Other" specification
Grid question with checkboxes in first column and radio buttons in second column. "Other" row includes text specification field that becomes required when "Other" checkbox is selected.
Validation: Options selected in checkbox column cannot be selected in radio column. "Other" checkbox requires text specification when selected.
Checkbox question with rows and columns featuring dependent column selection and conditional follow-up questions
Checkbox grid with streaming services as rows and device types as columns. Second column options are limited to services selected in first column. Third column triggers follow-up text input for device specification when selected. Validation: Column 2 selections restricted to Column 1 selections. Column 3 selections generate conditional follow-up questions for device specification.
Checkbox question with rows and columns featuring mutually exclusive column validation Checkbox question with services as rows and two columns for current vs future subscriptions. Second column only allows selection of services not checked in first column, preventing overlap between current and future subscriptions. Validation: Mutually exclusive column validation ensures items cannot be selected in both columns simultaneously.
Checkbox question with rows and columns featuring mutually exclusive column validation Checkbox question with multiple rows and three columns. Options selected in first and second columns are not allowed to be selected in third column for the same row. Validation: Third column selections are prevented for rows already selected in first or second columns
Checkbox question with rows and columns featuring conditional column validation Checkbox question with items as rows and three columns. Third column selections are only valid for items that have been selected in first or second columns. Validation: Third column selections restricted to items selected in first or second columns.
Checkbox question with rows and columns featuring conditional number input validation Checkbox and number input columns. Number input required when checkbox is selected for that row and input should not be allowed in the number column if the checkbox for that row is not selected. Validation: Number input mandatory for checked rows and should not be answered if the row is not checked.
Number question followed by hybrid question with conditional rows and response-dependent validation Number question determines row count in subsequent hybrid question. Hybrid question features number input, dropdown, and dropdown columns. Third column selections validated against second column responses. Validation: Row count matches previous number question. Third column selections must be compatible with second column responses, otherwise error message displayed.
Number question with rows followed by number question with rows and columns featuring conditional row display and sum validation Number question with rows determines which rows appear in subsequent number grid. Only rows with non-zero values from first question appear in second question. Sum of columns in second question must equal corresponding row total from first question. Validation: Conditional row display based on previous responses. Row totals in second question must match values from first question.
Number question with rows and columns featuring exclusive checkbox validation for each row Number question with rows and multiple columns including number inputs and exclusive checkbox column. Each row requires either number inputs OR checkbox selection, but not both and not neither. Validation: Each row must have either number inputs OR checkbox selected - error displayed if both are answered or if neither is answered.
Number question with rows and columns featuring exclusive checkbox row for each column Number question with rows and columns including number inputs and exclusive checkbox row. Each column requires either number inputs OR checkbox selection, but not both and not neither. Validation: Each column must have either number inputs OR checkbox selected - error displayed if both are answered or if neither is answered within the same column.
Dropdown question with rows and columns featuring unique ranking validation per row and column frequency limits Dropdown question with rows and columns for ranking selections. Each row requires exactly one first choice and one second choice. Each column has a maximum limit (3) for how many times it can receive first choice rankings across all rows. Validation: Each row must have unique first and second rankings. Each column limited to maximum 3 first choice selections across all rows.
Checkbox question with rows and columns featuring conditional dropdown ranking validation Checkbox and dropdown columns. Rankings validated to ensure they are only provided for checked items. Rankings must be sequential (1, 2, 3, etc.) matching the number of selected items without gaps. Validation: Rankings only valid for checked items. Rankings must be consecutive from 1 to number of selected items with no duplicates or gaps.
Checkbox question with rows and columns featuring number and dropdown inputs with complex validation Checkbox, number input, and dropdown columns. Number and dropdown inputs validated only for checked items. Number inputs must sum to 100%. Dropdown selections must align with number input hierarchy (highest percentage gets highest risk level, etc.). Validation: Number and dropdown inputs only valid for checked items. Percentages must total 100%. Risk levels must correspond to allocation percentage rankings.
Text question with phone number format validation including country code Text input field for phone number with validation requiring country code format (e.g., +1-234-567-8900). Validation: Phone number format validation ensures country code is included in proper international format.
Text question with URL format validation for specific domain Text input field for URL with validation requiring specific domain presence (e.g., "linkedin.com"). Validation: URL format validation ensures specific domain is included in the entered URL.
Text question with keyword validation for specific terms Text input field with validation requiring inclusion of specific keywords from predefined list (e.g., intern, junior, senior, lead, manager). Validation: Text validation ensures one of the specified keywords is included in the entered text.
Mixed question with text and number input fields with year range validation Multiple input fields including text inputs and number input with year validation. Number field restricted to specific year range (1950-2024). Validation: Year input field validated within specified range.
Text question with rows featuring format-specific validation Multiple text input fields with different format validation requirements. Some fields require comma-separated format or specific text, others require structured format with name and phone combination. Validation: Different format validation applied to each field - comma-separated entries, specific text options, or structured contact format.
Number question with rows and columns featuring complex multi-field validation Number grid with multiple validation rules including range limits, ratio calculations between columns, and percentage-based comparisons across time periods. Validation: Multiple validation rules - no negative values, maximum limits, ratio calculations between columns, and percentage relationships across different time periods.
Number question with rows and columns featuring complex validation with alerts and cross-field calculations Number grid with individual column range validations, conditional alert triggers based on multiple field combinations, and calculated validation requirements comparing individual rows to overall averages. Validation: - Column 1 ≤ 30 minutes - Column 2: 0-100% - Column 3: 1-10 scale - Alert if Column 2 <85% AND Column 3 <7 - Each row's Column 3 must be ≥85% of overall Column 3 average
Number question with rows and columns featuring complex validation with row-specific limits and cross-department comparisons Number grid with individual field validations, row-specific limits for emergency department, overall care time calculations, and patient load balance requirements across departments. Validation: - No negative value - Row 1 Column 1 ≤ 30 minutes - Row 1 (Column 1 + Column 2) ≤ 120 minutes - All rows (Column 1 + Column 2) ≤ 240 minutes - Column 3 gap between any departments ≤ 2x ratio
Number question with rows and columns featuring complex validation with minimum thresholds and cross-location comparisons Number grid with individual field validations, minimum sales requirements, cost percentage limits relative to sales, and performance benchmarking between specific locations. Validation: - No negative values - Column 1 ≥ $1,000 - (Column 2 + Column 3) ≤ 70% of Column 1 - Row 3 Column 1 ≥ 80% of average of (Row 1 + Row 2) Column 1
Number question with rows and columns featuring complex validation with ratio calculations and minimum thresholds Number grid with percentage range validations, negative value restrictions, cross-row ratio requirements, and minimum performance thresholds. Validation: - Column 1: 0-100% - Column 3: No negative values - Row 1 Column 3 : Row 2 Column 3 ratio between 0.33-3 - Column 1 minimum value: 30%
Number question with rows and columns featuring complex validation with efficiency ratios and cost calculations Number grid with range validations, efficiency ratio requirements between columns, and calculated cost-per-unit limits. Validation: - No negative values - Column 1 ≤ 100 tons - Column 1 ÷ Column 2 ≥ 0.5 - Column 3 ÷ Column 1 ≤ $1,000
Last updated
Was this helpful?