On 15.07.2004 08:36, Joose Vettenranta wrote:
Hi,

I was looking into cforms and came up with the question..

first one (this might be possible afaik):
Let's like I have form like R^(2x3)-matrix, like this:

question 1: <radio button1 [yes]> <radio button2 [no]>
question 2: <radio button1 [yes]> <radio button2 [no]>
question 3: <radio button1 [yes]> <radio button2 [no]>

and validation goes like, only one of those have to be set to "yes" and one to "no" but not the same ones, is this possible?

Yes, it's possible using 3 groups of each 2 radio buttons and a javascript validation on server side.


But it's far easier using 2 groups of each 3 radio buttons (1 group "yes", the second one "no") as so it is "technically" prevented to select more than one option per group.

second one:
Matrix of R^(9x9) (all radio buttons), validation:
- atleast 2 have to be between columns 1-3
- atleast 2 have to be between columns 4-6
- atleast 2 have to be between columns 7-9

is this possible?

Again handwritten javascript validation.

third one (I think this is possilble, afaik):
is it possible to make i18n transformation to cform messages?

Of course. I think all the samples use i18n.

fourth one:
if I have questions in some basic XML-file.. Can I do it like this with xslt:
my xml file -> CForms xml file -> CForms transformer -> my page template -> serialize?

What's "my page template"?

fifth one:
in flow script, if I have like 20 pages of forms.. can they all be saved in one beam, or do I have to process the data to database or something after every successfull request?

Yes, that's possible. The binding is independent on the form processing itself.


last one:
where to find more information about cforms? (I tried cocoon-site, wiki and samples directory allready, but doesn't seem to give very good picture without very detailed looking into it).

http://cocoon.apache.org/2.1/userdocs/forms/

Joerg


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to