Start a conversation

Negative values are rejected in number / decimal fields (Kommazahl)

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)

  1. Open the affected question in the questionnaire editor.
  2. Find the Mindestwert (minimum value) setting for the number field.
  3. Change it from 0 to a negative number (e.g., -9999) or clear it entirely to remove the restriction.
  4. 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

  1. Replace the number field with a single-line text input (Texteingabe, einzeilig).
  2. Add input validation with the regex: ^-?[0-9]+([,.][0-9]+)?$
  3. 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.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Unipark Support | CH

  2. Posted
  3. Updated

Comments