How can I require an entry in a text or text area field?

How can I require an entry in a text or text area field?

by Hartmut Scherer -
Number of replies: 2

I am using Dataform version 2015051100 2.9 in Moodle 2.9.1 and want to require an entry in a text field or a text area field. The exclamation mark works with the file field, but if I use the exclamation mark with text or text area, the user cannot add an entry at all. How can I require an entry in a text or text area field?

With kind regards,

Hartmut

Average of ratings: -
In reply to Hartmut Scherer

Re: How can I require an entry in a text or text area field?

by Itamar Tzadok -

The pattern flag for required field is *. The ! flag is supposed to make the field non-editable. smile

Average of ratings: Useful (1)
In reply to Itamar Tzadok

Re: How can I require an entry in a text or text area field?

by Hartmut Scherer -

Thank you for the explanation, Itamar. The pattern flag works fine and I learned something about the ! flag.

With kind regards,

Hartmut