Mario Minati wrote:

Hi Shawn,

sorry but I don't understand yet where your problem lifes. On the javscript side or on the perl side. Usually formfu will do all the backend processing for you and you don't have to play with nested_names and so on. You can add more fields with javascript and just adjust the count field and it will work. Maybe you forgot to the set new_rows_max modelconfig value of the repeatable block to an appropriate value, otherwise the DBIC model will not add the new rows.

Greets,

Mario

That is working for me. The problem I am having is that I am using someone else's javascript code that provides additional functionality if I give the <div> tag surrounding the repeatable element a sequential ID. Since the auto_id doesn't affect the div tag, I need to grab the ID from an element and build a sequential ID from it.

My blockage is that nested_name only contains information if the repeatable is only one level deep.
For example:

type: Repeatable
nested_name:  outer
elements:
 type: Repeatable
 nested_name: inner
 elements:

If I grab the nested_name from the outer repeatable, I would get nested_name == outer_1 If I grab the inner nested_name, I would hope to get nested_name == outer_1.inner_1, but instead I get a NULL

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to