Class **Phalcon\\Forms\\Element\\Submit** ========================================= *extends* abstract class :doc:`Phalcon\\Forms\\Element ` *implements* :doc:`Phalcon\\Forms\\ElementInterface ` .. role:: raw-html(raw) :format: html :raw-html:`Source on GitHub` Component INPUT[type=submit] for forms Methods ------- public **render** ([*array* $attributes]) Renders the element widget public **__construct** (*string* $name, [*array* $attributes]) inherited from :doc:`Phalcon\\Forms\\Element ` Phalcon\\Forms\\Element constructor public **setForm** (:doc:`Phalcon\\Forms\\Form ` $form) inherited from :doc:`Phalcon\\Forms\\Element ` Sets the parent form to the element public **getForm** () inherited from :doc:`Phalcon\\Forms\\Element ` Returns the parent form to the element public **setName** (*mixed* $name) inherited from :doc:`Phalcon\\Forms\\Element ` Sets the element name public **getName** () inherited from :doc:`Phalcon\\Forms\\Element ` Returns the element name public :doc:`Phalcon\\Forms\\ElementInterface ` **setFilters** (*array* | *string* $filters) inherited from :doc:`Phalcon\\Forms\\Element ` Sets the element filters public **addFilter** (*mixed* $filter) inherited from :doc:`Phalcon\\Forms\\Element ` Adds a filter to current list of filters public *mixed* **getFilters** () inherited from :doc:`Phalcon\\Forms\\Element ` Returns the element filters public :doc:`Phalcon\\Forms\\ElementInterface ` **addValidators** (*array* $validators, [*mixed* $merge]) inherited from :doc:`Phalcon\\Forms\\Element ` Adds a group of validators public **addValidator** (:doc:`Phalcon\\Validation\\ValidatorInterface ` $validator) inherited from :doc:`Phalcon\\Forms\\Element ` Adds a validator to the element public **getValidators** () inherited from :doc:`Phalcon\\Forms\\Element ` Returns the validators registered for the element public **prepareAttributes** ([*array* $attributes], [*mixed* $useChecked]) inherited from :doc:`Phalcon\\Forms\\Element ` Returns an array of prepared attributes for Phalcon\\Tag helpers according to the element parameters public :doc:`Phalcon\\Forms\\ElementInterface ` **setAttribute** (*string* $attribute, *mixed* $value) inherited from :doc:`Phalcon\\Forms\\Element ` Sets a default attribute for the element public *mixed* **getAttribute** (*string* $attribute, [*mixed* $defaultValue]) inherited from :doc:`Phalcon\\Forms\\Element ` Returns the value of an attribute if present public **setAttributes** (*array* $attributes) inherited from :doc:`Phalcon\\Forms\\Element ` Sets default attributes for the element public **getAttributes** () inherited from :doc:`Phalcon\\Forms\\Element ` Returns the default attributes for the element public :doc:`Phalcon\\Forms\\ElementInterface ` **setUserOption** (*string* $option, *mixed* $value) inherited from :doc:`Phalcon\\Forms\\Element ` Sets an option for the element public *mixed* **getUserOption** (*string* $option, [*mixed* $defaultValue]) inherited from :doc:`Phalcon\\Forms\\Element ` Returns the value of an option if present public **setUserOptions** (*array* $options) inherited from :doc:`Phalcon\\Forms\\Element ` Sets options for the element public **getUserOptions** () inherited from :doc:`Phalcon\\Forms\\Element ` Returns the options for the element public **setLabel** (*mixed* $label) inherited from :doc:`Phalcon\\Forms\\Element ` Sets the element label public **getLabel** () inherited from :doc:`Phalcon\\Forms\\Element ` Returns the element label public **label** ([*array* $attributes]) inherited from :doc:`Phalcon\\Forms\\Element ` Generate the HTML to label the element public :doc:`Phalcon\\Forms\\ElementInterface ` **setDefault** (*mixed* $value) inherited from :doc:`Phalcon\\Forms\\Element ` Sets a default value in case the form does not use an entity or there is no value available for the element in _POST public **getDefault** () inherited from :doc:`Phalcon\\Forms\\Element ` Returns the default value assigned to the element public **getValue** () inherited from :doc:`Phalcon\\Forms\\Element ` Returns the element value public **getMessages** () inherited from :doc:`Phalcon\\Forms\\Element ` Returns the messages that belongs to the element The element needs to be attached to a form public **hasMessages** () inherited from :doc:`Phalcon\\Forms\\Element ` Checks whether there are messages attached to the element public **setMessages** (:doc:`Phalcon\\Validation\\Message\\Group ` $group) inherited from :doc:`Phalcon\\Forms\\Element ` Sets the validation messages related to the element public **appendMessage** (:doc:`Phalcon\\Validation\\MessageInterface ` $message) inherited from :doc:`Phalcon\\Forms\\Element ` Appends a message to the internal message list public **clear** () inherited from :doc:`Phalcon\\Forms\\Element ` Clears every element in the form to its default value public **__toString** () inherited from :doc:`Phalcon\\Forms\\Element ` Magic method __toString renders the widget without attributes