I've got a form, and I need to render a dynamic set of
hierarchyically structured questions. For example, a radio-button
question might have 2 "child" questions. And those children questions
might have their own children, and so on.
Think of it like an array of arrays.
The sensible way to do this is a recursive function, something like
"renderQuestions" which takes the array of questions, loops over them,
and if it's got children, calls renderQuestions() on those children,
on down the hierarchy.
The problem is, I can't seem to be able to use cfuniform tags in a
function, because the "context" is lost. If I have a uform:fieldset,
and then a bunch of uform:field tags, I get this error:
The parameter combination cf_form of function GetBaseTagData does not
specify a base tag that exposes any data. (Error)
Is there a way to use the cfuniform fieldset and field tags in a function?
Thanks.
Marc
--
You received this message because you are subscribed to the Google Groups "cfUniForm-users" group.
To post to this group, send email to cfunifo...@googlegroups.com.
To unsubscribe from this group, send email to cfuniform-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfuniform-users?hl=en.