Re: ids now included in Formulator fields

Andy Altepeter <[email protected]> Thu, 15 Oct 2009 20:45:40 -0500
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
On Saturday 10 October 2009 10:04:39 am Kit BLAKE wrote:
> Seems the new version of Forumulator - which we're using in 2.2 - now
> adds ids to fields. This has created some conflict problems because
> we've added ids in the Formulator 'extra' fields. Everywhere. :(  But
> we think letting Formulator do it is the best behavior so we're
> planning on removing all the id=${here/id} and variants. You might
> check your own code.

Everyone - sorry about that.  I added ids to many formulator fields without 
thinking about the possible repercussions.  I have a few additional todo's 
now regarding this:

1) sanitize the ids so they are valid html id's (and also valid CSS 
selectors).  Mainly this means stripping out periods and colons from field 
ids.
2) It would be nice to add to the Formulator ZMI screens a printout of what 
the html id of the field is.

Let me know if I'm missing anything...

Andy

>
> Kit