Character limits for Pavlovia survey single-input question

Hi there,

Is it possible to set a character limit for the single-input question types? For example, when asking participants to enter a 4-digit alphanumeric PIN, only allowing responses with 4 characters and not 3 or 5 etc.?

Thanks :slight_smile:

  1. Make the question required.
  2. In Validators add Regex with a regular expression ^…$

Alternatively use regex … and add 4 as the maximum length