Number Questions
Number questions collect numeric responses. Use them for quantities, ages, ratings, prices, or any question where you need a numeric answer. The input ensures respondents can only enter valid numbers.
When to Use
Use number questions to collect:
- Ages - “How old are you?”
- Quantities and counts - “How many employees work at your company?”
- Measurements - “What is your height in centimeters?”
- Prices and budgets - “What is your annual budget for this category?”
- Percentages - “What percentage of your time do you spend on this task?”
Visual Presentation
Number Input
Simple numeric input for any whole or decimal number.
Slider
Using min, max and step values ui can be represented as a slider.
Configuration Options
Customize your number questions with these settings:
- Minimum value - Set a lower bound (e.g., age must be at least 18)
- Maximum value - Set an upper bound (e.g., rating can’t exceed 100)
- Step size - Control increments (e.g., 0.01 for currency, 1 for whole numbers)
Best Practices
Set Appropriate Ranges
Always set minimum and maximum values when you have specific constraints:
- Age questions: Min 18, Max 120
- Percentages: Min 0, Max 100
This prevents invalid data and helps respondents understand the expected range.
Use Clear Labels
Be explicit about what you’re asking for:
- “How many years of experience do you have in this field?”
- Avoid vague labels like “Experience?”
Include units in your question or help text:
- “What is your budget? (in USD)”
- “Height (in centimeters)“
Provide Context
If respondents might not know the exact number, give them guidance:
- “Approximately how many…”
- “Your best estimate of…”
- Provide examples: “e.g., 25, 50, 75”
When NOT to Use Number
Consider alternatives if:
- You want predefined ranges - Use SelectOne with options like “1-10”, “11-50”, “51-100”
- Collecting date information - Use Date years, months, days
Number questions are best for collecting actual numeric values that you’ll use in calculations or analysis.
Tips for Better Responses
- Show expected ranges in your question or help text
- Set sensible min/max to prevent data entry errors
- Don’t ask for numbers if you really need categories (use SelectOne instead)