Closed (fixed)
Project:
Clientside Validation
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2017 at 12:22 UTC
Updated:
31 Aug 2018 at 11:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jelle_sWe did this for Drupal 7 and ended up with a ton of submodules and hard to maintain code. We decided for D8 to leverage the plugin system for custom validation requirements, which means it's up to the contrib modules to decide whether or not they want to support Clientside Validation. Unless @attiks disagrees with me of course
Comment #3
nikunjkotechaI'm working on custom patch right now for this and wanted to detail out in description later tonight.
Currently the only issue that I face and I feel should be fixed is to ensure two messages are not displayed. We need to allow hooking into the JS options in a way that other modules can modify the error message markup and also to take some action if required.
For instance, in this current case - I get div.form-item--error-message from inline_form_errors and then clientside_validation module adds label.error and to end user both are displayed.
Hope this makes sense, for sure we can change the ticket to allow hooking into clientside_validation module to make it more relevant.
Comment #4
nikunjkotechaAdding basic patch to fix UI bug mentioned above.
Comment #5
nikunjkotechaComment #6
nikunjkotechaComment #7
nikunjkotechaDid two things in this patch:
@Jelle_S: Possible to review this one?
Comment #9
nikunjkotechaUpdated the code, moved ife related stuff to separate js file and in the main file added only the event trigger to allow any module to update options. This is more extensible now and supports ife like ckeditor.