Skip to main content

Bug Tracker

Side navigation

#3477 closed bug (wontfix)

Opened October 13, 2008 05:05PM UTC

Closed October 21, 2008 06:48PM UTC

Validate Plugin - metadata messages influence behaviour

Reported by: pduijves Owned by: joern
Priority: minor Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: Validate Plugin metadata messages Cc:
Blocked by: Blocking:
Description

hi! i think i ran into a bug;

when i validate a form with the input field below, validate also triggers if the input is not numeric, though i don't want it to and don't tell it to.

<input type="text" id="addressb2" name="addressb2" value="" class="{validate:{required:true, messages:{required:'Street number is required'
"/>

}}}

adding the rule number:false does not help.

i found a workaround by breaking the word 'number' in the custom error message:

<input type="text" id="addressb2" name="addressb2" value="" class="{validate:{required:true, messages:{required:'Street <span>n</span>umber is required'
"/>

}}}

which could be a clue, that words in the custom message text are matching rules somewhere

thanks for the great plugin!

ps: i couldn't find a way to attach this message straight to the right plugin...

Attachments (0)
Change History (5)

Changed October 13, 2008 05:07PM UTC by pduijves comment:1

...some html is filtered from the message. i meant:

i found a workaround by breaking the word 'number' in the custom error message:

<input type="text" id="addressb2" name="addressb2" value="" class="{validate:{required:true, messages:{required:'Street num ber is required'}}}"/>

Changed October 14, 2008 05:00PM UTC by flesler comment:2

owner: → joern

Changed October 19, 2008 08:11PM UTC by pduijves comment:3

sorry, take 3, i meant:

i found a workaround by breaking the word 'number' in the custom error message:

<input type="text" id="addressb2" name="addressb2" value="" class="{validate:{required:true, messages:{required:'Street num<!---->ber is required'}}}"/>

Changed October 21, 2008 06:45PM UTC by joern comment:4

description: hi! i think i ran into a bug; \ \ when i validate a form with the input field below, validate also triggers if the input is not numeric, though i don't want it to and don't tell it to. \ \ <input type="text" id="addressb2" name="addressb2" value="" class="{validate:{required:true, messages:{required:'Street number is required'}}}"/> \ \ adding the rule number:false does not help. \ \ i found a workaround by breaking the word 'number' in the custom error message: \ \ <input type="text" id="addressb2" name="addressb2" value="" class="{validate:{required:true, messages:{required:'Street <span>n</span>umber is required'}}}"/> \ \ which could be a clue, that words in the custom message text are matching rules somewhere \ \ thanks for the great plugin! \ \ ps: i couldn't find a way to attach this message straight to the right plugin... hi! i think i ran into a bug; \ \ when i validate a form with the input field below, validate also triggers if the input is not numeric, though i don't want it to and don't tell it to. \ \ {{{ \ <input type="text" id="addressb2" name="addressb2" value="" class="{validate:{required:true, messages:{required:'Street number is required'}}}"/> \ }}} \ adding the rule number:false does not help. \ \ i found a workaround by breaking the word 'number' in the custom error message: \ {{{ \ <input type="text" id="addressb2" name="addressb2" value="" class="{validate:{required:true, messages:{required:'Street <span>n</span>umber is required'}}}"/> \ }}} \ which could be a clue, that words in the custom message text are matching rules somewhere \ \ thanks for the great plugin! \ \ ps: i couldn't find a way to attach this message straight to the right plugin...

Changed October 21, 2008 06:48PM UTC by joern comment:5

resolution: → wontfix
status: newclosed

In this case using metadata with the class attribute doesn't work. There are plenty alternatives for specifying messages, or configure the validation plugin to search in a custom attribute for the rules/messages.