Negative values in decimal / number input fields
By default, Unipark number input fields (Kommazahl) have a minimum value of 0, which prevents negative numbers from being entered. Here is how to fix this.
Fix A — Change the minimum value setting (recommended for live surveys)
- Open the affected question in the questionnaire editor.
- Find the Mindestwert (minimum value) setting for the number field.
- Change it from 0 to a negative number (e.g., -9999) or clear it entirely to remove the restriction.
- Test in preview mode before saving.
This is the safest fix for a survey that is already live with responses.
Fix B — Replace with a text field and regex validation
- Replace the number field with a single-line text input (Texteingabe, einzeilig).
- Add input validation with the regex:
^-?[0-9]+([,.][0-9]+)?$ - This accepts both negative integers and negative decimals.
⚠ Warning: Do NOT change the question type on a live survey with existing responses. Only use Fix B on new surveys or after duplicating the project.
Unipark Support | CH
Comments