tghounsell
Member
I created a form that has some php validation in one element and it works fine when the default form is used. It draws values from the other elements using the $_POST variables. However, I would like this form to be a repeatable group in another form. So I need to be able to reference the array index number for the field where the validation is stored and apply it the field being referenced. In other words, if this is the 3rd instance of the repeating, subordinate form, I want to apply the value '2' to correctly reference the corresponding element. But $data just gives me the value of the current element. Is there a way of knowing which iteration of an element the current one is?
Thanks!
Thanks!