8000 Adding validation rules in frontend HTML · Issue #183 · formr/formr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Adding validation rules in frontend HTML #183
Closed
@Reinhout-V

Description

@Reinhout-V

Example validation rule:
$form->validate('Name(min[2]|max[30]), Email, Comments'); $form->text('Name', 'Name', '', '', '', '');

Created HTML of the input field:
<input type='text' name='Name' value='' **minlength='2' maxlength='30'**>

No validation is only done on server side.
Could this also be done on client side, like you do with the required rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0