Title: tagbox required validation Post by: samuel.fung on April 11, 2017, 07:28:39 PM This may be a duplicate of https://www.jeasyui.com/forum/index.php?topic=6400.0
(https://www.jeasyui.com/forum/index.php?action=dlattach;topic=6615.0;attach=1461) Despite a tag has been added, the "required" validation fails and blocks form submission. Code: <form id="f" method="post"> Title: Re: tagbox required validation Post by: stworthy on April 11, 2017, 08:42:18 PM The 'required' property validate the inputing value not the whole tagbox values. Please extend a new validation type to achieve your requirement.
Code: <script type="text/javascript"> Title: Re: tagbox required validation Post by: samuel.fung on April 11, 2017, 09:25:52 PM Thanks, it works. Please consider if it should be the default behaviour of required validation for tagbox.
"required" is to ensure something is submitted in the form. The "inputting value" are omitted in form submission, so there is no point in validating it. |