.. include:: ../../../Includes.txt


.. _reference-rules-required:

========
required
========

Checks if the submitted value exists and is not empty.

0 or "0" are allowed and the rule will return true.


.. _reference-rules-required-breakonerror:

breakOnError
============

:aspect:`Description:`
    See general information for :ref:`reference-validation-attributes-breakonerror`.


.. _reference-rules-required-element:

element
=======

:aspect:`Description:`
    See general information for :ref:`reference-validation-attributes-element`.


.. _reference-rules-required-error:

error
=====

:aspect:`Description:`
    See general information for :ref:`reference-validation-attributes-error`.

:aspect:`Default:`
    *local language:*"This field is required"


.. _reference-rules-required-message:

message
=======

:aspect:`Description:`
    See general information for :ref:`reference-validation-attributes-message`.

:aspect:`Default:`
    *local language:*"Required"


.. _reference-rules-required-showmessage:

showMessage
===========

:aspect:`Description:`
    See general information for :ref:`reference-validation-attributes-showmessage`.

[tsref:(cObject).FORM->rules.required]

