I'm having an issue where the form for Pollfield is bringing up an error when I validate my site. I've scoured the pollfield.module file but can't see where I can correct this myself (I'm not a programmer, so sorry if this is obvious).

The problem is the line:
<form action="/pollfield/vote" accept-charset="UTF-8" method="post" id="">

The problem appears to be that the ID is empty. Validation gives me the error: "syntax of attribute value does not conform to declared value"

Any help with this would be much appreciated. And thanks for this module - it was a relief to find it!

Comments

mario_prkos’s picture

It is not surprise that you didn't find html because this is done by Form API of Drupal. This html is not what pollfield directly generating so I can not fix it directly but I can check out is this can be done somehow through form API. Keep in touch I will see what I can do.

sparkells’s picture

Thanks for that. It's not a big deal at all - just one of those 'nice to fix' things.

mario_prkos’s picture

This is quick and dirty solution. Just put this line of code in the end of function theme_pollfield_formatter_default just before return $out

$out=str_replace('id=""'," ",$out);
This will basically delete empty id form output generated by pollfield. It will not touch output of other modules. This id is not used by pollfield and it is save to remove it. If you really need this solved you can use this solution or you can wait that this is solved on more general and more elegant way.

Thanks for pointed it out.

ar-jan’s picture

Status: Active » Closed (works as designed)

Thanks for the workaround. I assume this should then be seen as 'by design'. And subscribing - I didn't find a core issue on this problem. Is there?