Hi all,
I have a problem in sfPokaYokePlugin client side validation,
I installed latest version of this plugin and created validation yml
file.
It works fine if i have single condition in my validation yml file
contents of validation file working good in client side
fillin:
enabled: true
methods:
post: [frm_first_name]
names:
frm_first_name:
required: true
required_msg: The name field cannot be left blank
validators: nameValidator
nameValidator:
class: sfStringValidator
param:
min: 6
min_error: you did not enter a valid name Please try again
max: 100
max_error: you did not enter a valid name Please try again
In this case it works fine. If i add another field name
Eg validation conditions:
fillin:
enabled: true
methods:
post: [frm_first_name, frm_last_name]
names:
frm_first_name:
required: true
required_msg: The name field cannot be left blank
validators: nameValidator
frm_last_name:
required: true
required_msg: The email field cannot be left blank
validators: nameValidator
nameValidator:
class: sfStringValidator
param:
min: 6
min_error: you did not enter a valid name Please try again
max: 100
max_error: you did not enter a valid name Please try again
this will not work, it displays some javascript errors like :
missing } after property list.
I tried out some patch given by the bellow url
http://trac.symfony-project.org/ticket/2911
But i am not able to get a solution for my problem.
By using that validation yml file normal server side validation works
fine for me.
Please guide me to clear out this Javascript validation error.
Thank you,
Ashok.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---