in reply to Dynamic forms In Perl

I did something like thisą in the past, but the real problem was to have all options functional also for non-JS users!

For the JS-part and template toolkit:

I had all possible HTML-chunks created on the server side and included as hidden templates into the text.

The buttons just inserted them per JS onClick().

I don't know of any CPAN-module helping you there.

Cheers Rolf

1) actually it was more comnplex, because the number of potential combinations was infinite.