---
name: "HTML::Widget::Element::Submit"
section: "3pm"
platform: "linux"
package: "libhtml-widget-perl"
version: "1.11-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTML::Widget::Element::Submit"
---

# HTML::Widget::Element::Submit(3pm)

Submit Element

## NAME

HTML::Widget::Element::Submit - Submit Element

## SYNOPSIS

```
    $e = $widget->element( 'Submit', 'foo' );
    $e->value('bar');
```

## DESCRIPTION

Submit button element.

Inherits all methods from HTML::Widget::Element::Button.

Automatically sets type to `"submit"`.

## METHODS

### new

### value

### label

Sets the form field value. Is also used by the browser as the  button label.

If not set, the browser will usually display the label as "Submit".

"label" is an alias for "value".

### retain\_default

If true, overrides the default behaviour, so that after a field is missing  from the form submission, the xml output will contain the default value,  rather than be empty.

## SEE ALSO

HTML::Widget::Element

## AUTHOR

Sebastian Riedel, `"sri@oook.de"`

## LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
