Need assistance using edc2go? We are here to help

Validation rules: text length

Specify the maximum allowed number of characters for single line text and paragraph text questions.

Front end

If you enter a number of characters that is outside the specified range, edc2go will indicate this with a message:
at this point, you can either:
  • Save the form with an open query.
  • Cancel the save action and go back to the form to complete the required question(s).

Design: Specify text length range

  • Make sure that your CRF has status 'Design'.
  • Go to your design area via My Studies --> CRF.
  • Go to the applicable visit and form and click the '+ Add validation rule' button on the right hand side of the applicable question:
A validation rules window will open.
On the left hand side of the window is the list of all available validation rules of that particular element type:
Each element type has its own set of validation rules. To see an overview of possible validation rules per element type, check out this article.
  1. Check the box in front of the 'Text length' validation rule.
  2. Specify a minimum (MIN field) and/or maximum (MAX field) number of characters.
  3. The query text is present by default as:"The text should be at least [value min] (this is the number as specified in the MIN field) and maximum [value max] (this is the number as specified in the MAX field) characters". You can update this text as applicable for your question.
  4. Click the Save button.
  5. the '+Add validation rule' button is now displayed as '  üText length' but the button is still functional. Click this button to edit the validation rule(s) for this question.
This question also has an indication of 'Sub-question'. For more information on how to define an element as sub- question, check out this article.

Feedback and Knowledge Base