You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joose Vettenranta <jo...@iki.fi> on 2004/07/15 08:36:36 UTC
cforms and complex checking?
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?
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?
third one (I think this is possilble, afaik):
is it possible to make i18n transformation to cform messages?
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?
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?
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).
what I am trying to do:
To have questions in XML file and get them answered. need to save
answers to database and then I have another part, which reads those
answers and creates a summary with help of that XML file (reads
questions from there). So keeping original data (questions) in simple
XML-form, it should be easy to parse to use in webpages and in
summary..
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: cforms and complex checking?
Posted by Joerg Heinicke <jo...@gmx.de>.
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org