Forums

Duplicate form element IDs when using Wizard Edit

wizdum 02 Oct, 2009
3.1 RC5.5

When I create a form, then go back with wizard edit and add new form fields, I get a duplicate form element ID.
I am assuming this is a zero-index-array mistake as I have also noticed when using the Multiholder that you have to add 1 to the form indexes. ie, when mouseover the other form fields if it displays form_item1 you need to use 2 in the 'Elements Orders' field.

I can see that the mouseover form_itemX does not relate to the ID used (after save it changes to order shown) however the same zero-index issue seems to exist there.

Anyway.. just a guess but there seem to be problems with indexes in the Wizard edit. It either needs to be looked at or removed. Perhaps wizard should only be allowed to be used once.

I would attach a form export but it isn't working for me http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=3&t=15987
GreyHead 02 Oct, 2009
Hi wizdum,

I just ran a few quick checks and was unable to replicate this, in each case the new input had an incremented id on save.

I added extra text inputs, and file inputs to existing inputs of the same kind and added select boxes to the mix. No problems at all.

Bob
wizdum 09 Oct, 2009
Just to clarify, is this the ID shown when mouseover the form field in wizard edit? (which seems to relate to order)
or the actual id="" in the code?

or should these be the same?
GreyHead 09 Oct, 2009
HI wizdum,

I was talking about the id attribute in the input e.g. id='text_0'.

Equally, I don't see the problem with the item-order id that you see on mouse-over :-(

I just checked with a bunch of text inputs, as you say the item-order id changes on form re-load but otherwise the sequence seems consistent.

Bob
This topic is locked and no more replies can be posted.