Closed (fixed)
Project:
Clientside Validation
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Anonymous (not verified)
Created:
23 Apr 2012 at 18:42 UTC
Updated:
10 May 2024 at 02:42 UTC
Jump to comment: Most recent
Comments
Comment #1
attiks commentedIt's basically the same, you have to attach it to the js_rules on the server and provide a custom javascript function (or use an existing) to do the validation in javascript. If you get stuck let me know.
Comment #2
Anonymous (not verified) commentedThank you for responding. I'm still a bit stuck. Below is a simplified example of what I'm trying to do. My validation (tied to the parent element) compares the two child elements and sets an error using form_set_error(). It doesn't seem like hook_clientside_validation_rule_alter() is even involved in this process.
In the form builder:
Validation function:
EDIT: #1410346: hook_clientside_validation_rule_alter does not work looks relevant. Much like OP, it seems that I'm using the module incorrectly, by trying to implement hook_clientside_validation_rule_alter() without using FAPI Validation or Field Validation. This sort of brings me back to the original question, can I use this module given the above scenario?
Comment #3
attiks commented#1410346 is the same, I'm changing this into a feature request and will see how we can solve this
Comment #4
attiks commentedComment #5
jelle_sThis is fixed in the latest dev version. Below is example code of how you would do this:
Comment #6
jelle_sBackported to 6.x as well
Comment #7
Anonymous (not verified) commentedWow, thank you so very much!