[Koha-bugs] [Bug 22657] Remove JavaScript from OPAC suggestion validation of required fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 8 16:56:40 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22657

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 87526
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=87526&action=edit
Bug 22657: Remove JavaScript from OPAC suggestion validation of required fields

This patch modifies the OPAC suggestion form so that it doesn't require
JavaScript for form validation. This change doesn't alter the behavior
of the form for users but does fit with the general goal of progressive
enhancement for the OPAC.

The patch adds "required" labels to required fields to better identify
required fields.

To test, apply the patch and make sure there are required fields
specified in the OPACSuggestionMandatoryFields system preference.

 - Log in to the OPAC and go to Your purchase suggestions -> New
   purchase suggestion.
 - Verify that the fields specified in OPACSuggestionMandatoryFields are
   highlighted and marked "required."
 - Verify that you can't submit the form without filling out these
   fields.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list