Dynamic rows in a form based on previous question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Dynamic rows in a form based on previous question

jvandevelde

Hi,

We are evaluating OF for a current project and I have a question regarding the
best way to implement a type of question that our project requires.
- Basically, the user will select a combination of occupations from a list of
checkboxes in a question. These occupations are currently populated via a
webservice.
Ie:
Please select the occupations you currently have:
[] Occupation 1
[] Occupation 2
[] Occupation 3

- After the user selects their occupations, there are approx 10 tables that
they have to fill out. Each row represents an occupation that they selected,
while each column represents a question pertaining to each occupation.

Ie: (If the user selected Occupations 1 and 3)

---------------------|# Ppl | # Male | # Female | Avg Age |
Occupation 1  | |    |   | |
---------------------------------------------------------------------------
Occupation 3  | |    |   | |
---------------------------------------------------------------------------

If the list of occupations was static, I would probably do this is Forms
Builder and then set a visibility constraint based on the user selection of
occupations, but that is not the case....
I've gathered that this is probably not possible in Forms Builder, but I am a
little bit lost as to what the best way to implement this may be? Any help
would be greatly appreciated!

Thanks,
Jules Van de Velde


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic rows in a form based on previous question

Alessandro  Vernet
Administrator
Jules,

Like you said, currently Form Builder does not support xforms:repeat.
So I would program this in straight XForms. Would that be something
that can work for you? If it does, and if you have never worked with
XForms before, I would get started by going through the XForms
tutorial:

http://www.orbeon.com/orbeon/doc/intro-tutorial

With this, you should have the basics, and should be able to start
writing the code. And while you do this, don't hesitate to post on
this list if you stumble upon any problem; we'll do our best to help.

Alex

On Tue, Apr 13, 2010 at 1:47 PM,  <[hidden email]> wrote:

>
> Hi,
>
> We are evaluating OF for a current project and I have a question regarding the
> best way to implement a type of question that our project requires.
> - Basically, the user will select a combination of occupations from a list of
> checkboxes in a question. These occupations are currently populated via a
> webservice.
> Ie:
> Please select the occupations you currently have:
> [] Occupation 1
> [] Occupation 2
> [] Occupation 3
>
> - After the user selects their occupations, there are approx 10 tables that
> they have to fill out. Each row represents an occupation that they selected,
> while each column represents a question pertaining to each occupation.
>
> Ie: (If the user selected Occupations 1 and 3)
>
> ---------------------|# Ppl | # Male | # Female | Avg Age |
> Occupation 1  |         |           |              |             |
> ---------------------------------------------------------------------------
> Occupation 3  |         |           |              |             |
> ---------------------------------------------------------------------------
>
> If the list of occupations was static, I would probably do this is Forms
> Builder and then set a visibility constraint based on the user selection of
> occupations, but that is not the case....
> I've gathered that this is probably not possible in Forms Builder, but I am a
> little bit lost as to what the best way to implement this may be? Any help
> would be greatly appreciated!
>
> Thanks,
> Jules Van de Velde
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet