Cascading dropdown repeat group error

urbido

Member
Hi, I have error when trying to add and remove repeatgroup with cascading dropdown. Lets say I have 3 rows, add 4th, remove it, add it again and then there is error (from doWatch function in cascadingdropdown.js). I found that formElements are badly removed and options.watch is also changed in unlogical way.
 
Cascading dropdowns are sometimes tricky especially in repeat groups. I would switch to databasejoin element with Where statement and Ajax update which does basically the same thing.
 
Thanks, that solved the problem, but now there is error when I have 3 repeat elements, their names are ...repeat_element[0], repeat_element[1] and repeat_element[2].. when I delete 3rd row (minus button), the seconds name is changed to repeat_element[0], so when I save it, the second row gets deleted (it just gets empty). Any idea?
 
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top