Forum OpenACS Development: ad_form and formgroup_id

Collapse
Posted by Malte Sussdorff on
In complex survey we allow custom templates for the sections. This is possible by creating an .adp section page which contains something like "<formwidget id="response_to_question.913001">". When the user answers the question this .adp section page will be displayed through an @section_template;noquote@ in the style (acs-templating/resources/forms) of the templating system.

Is it possible to use this addressing of formwidget id in an ad_form generated form as well (it should be, I assume, but how :)). Especially, what would be the way to display the full adp of a form generated by ad_form before it get's send to the aolserver template parser.

Collapse
Posted by Timo Hentschel on
Yes, it works just as you described. The only issue in your specific case has been that i slightly changed your code of complex survey to now use "_" to delimit the question_id instead of "." when attaching it to "response_to_question". This change is a customization and has not been committed to cvs.