Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
web:formvalidation.io [2023-11-04 10:00] – [Typical code] adminweb:formvalidation.io [2023-11-04 10:39] (current) admin
Line 1: Line 1:
-===== Web ===== +====== Web ====== 
-=== formvalidation.io ===+ 
 +===== formvalidation.io =====
   * website: [[https://formvalidation.io/]]   * website: [[https://formvalidation.io/]]
-== Installation ==+==== Installation ====
 <code bash> <code bash>
 npm install @form-validation/bundle npm install @form-validation/bundle
Line 9: Line 10:
 npm install @form-validation/plugin-j npm install @form-validation/plugin-j
 </code> </code>
-== Typical code ==+==== Typical code ====
 <code php | css> <code php | css>
     <?php if ( defined('PAGE_OPTIONS') and in_array('formvalidation', PAGE_OPTIONS) ) { ?>     <?php if ( defined('PAGE_OPTIONS') and in_array('formvalidation', PAGE_OPTIONS) ) { ?>
Line 24: Line 25:
   <?php } ?>   <?php } ?>
 </code> </code>
 +==== Typical errors ==== 
 +  * ''Cannot read properties of null (reading 'classList')'' 
 +    * Caused by bootstrap5-plugin: this requires the form-control to be embedded in a ''.row'' div > the .row div will contain the ''.fv-plugins-bootstrap5-row-invalid'' style and add a ''.fv-plugins-message-container.invalid-feedback'' div to the bottom of the row.