Hi
I need to implement validation check if the user has voted on the client side (show a msg & stop the form submission)
i know how to add onSumbit function to the form for validation (here is a sample- http://drupal.org/node/179994)
my question is how can i know the user has not voted yet ?
i see that there is a Select tag that is hidden and using the stars to votes does not change it
the only change i saw is that the star-N class was added a "on" class
i want my code to be genreic - so browsers that doesn't supports the widget , will work too
is that the way to check , or am i missing something here ?
Thanks Avior
Comments
Comment #1
avior commentedI will be happy is someone can give me a lead to start with
Comment #2
avior commentedthis is what i did
on form_alter hook i have added
i have added this function to the tpl file (in my case it was a view)
i guess that there is a better way (a more genreric one)
Comment #3
rishi.kulshreshthaI was also searching for some more generic way but didn't find yet, finally I've implemented this. For those who are still suffering from this can try this fix in their .module file.
Comment #4
whiteph commentedSorry, Drupal 6 is end of life, and is no longer supported.