type=range and condition

12 views
Skip to first unread message

Byron Raines

unread,
Jan 30, 2012, 12:40:38 PM1/30/12
to ValidateThis
Hi all.

Can you use the condition attribute on type="range"? I checked the
"ClientRuleScripter_Range.cfc". I don't see any references to
"conditions" like there is in the "ClientRuleScripter_Required.cfc".

Thanks

Byron

Byron Raines

unread,
Jan 30, 2012, 1:20:58 PM1/30/12
to ValidateThis

Byron Raines

unread,
Jan 30, 2012, 1:21:33 PM1/30/12
to ValidateThis
Sorry for the double submit.

Byron

Bob Silverberg

unread,
Feb 1, 2012, 2:28:30 PM2/1/12
to valida...@googlegroups.com
Hi Byron,

Sorry, this one got lost at the bottom of my inbox. Quick question:
did you try it, and if so, what happened?

Bob

> --
> You received this message because you are subscribed to the Google Groups "ValidateThis" group.
> To post to this group, send email to valida...@googlegroups.com.
> To unsubscribe from this group, send email to validatethis...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/validatethis?hl=en.
>

--
Bob Silverberg
www.silverwareconsulting.com

Byron Raines

unread,
Feb 2, 2012, 3:32:27 PM2/2/12
to ValidateThis
No problem.

I tried to include a condition. I checked that the condition was
valid. If I add the condition attribute to the rule of type=range,
the js is not written. If I take the condition off, the js is written

2 things I looked at:

1.) The "ClientRuleScripter_Range.cfc" did not seem to have any
references to "conditions" as "ClientRuleScripter_Required.cfc".

2.) My condition is "clientTest="$('#HTN').val() == 1;". I verified
the condition works on a required field. The one thing that may cause
an issue, however I would not see why, is that #HTN refers to a hidden
input field.

Byron

Bob Silverberg

unread,
Feb 2, 2012, 3:52:39 PM2/2/12
to valida...@googlegroups.com
I think that conditions only work on required fields right now (which
your test verifies). I wonder if John or anyone else with JS skillz
would be interested in seeing what it would take to allow conditions
to work on any validation type on the front-end?

Bob

Byron Raines

unread,
Feb 2, 2012, 4:30:49 PM2/2/12
to ValidateThis
Thanks for looking into this.

Byron
Reply all
Reply to author
Forward
0 new messages