smcmahon/Products.PloneFormGen — Issue #5: FieldSet Folder and questio id
Author: yurj
Created: 2011-10-21 09:32:27+00:00
State: open

Hi!

if you copy and paste a Fieldset Folder, you can get nasty errors when you try to use the form. That's because the questions get the same id. Being Fieldset Folder a Folder, it does not change the question ids.

This is a problem because when the form renders, multiple inputs get the same id, so validation goes crazy and you can submit any form.

A solution could be to create FieldSet input ids with the fieldset id is prepended. So you get fieldset1_input1 and copy_of_fieldset1_input1. Names will never clash in this way. I don't know if inputs can know if they're on a FiledSet Folder.