Paint layouts (or something else) and forms

Hi there,
Hoping someone can point me in the right direction with this one.



We have a requirement to ask a few questions of the public user and then link them to a specific form.



For example, if Public user belongs to a specific group A B or C, they would click the corresponding link/pic etc.



Next they are asked a question - group A respondents , if answer YES-go to Form 1-if NO-go to form 2

groupB respondents, if answer Yes go to form 2, if no go to standard page X

groupC respondents, if ansmwered Yes, go to standard page X for more info, if No go to form 3.



Can anyone suggest a way to approach this type of scenario. I've had no experience yet with paintlayouts, but after a quick read of the manual I,m thinking that we could build a form with show/hide fields using conditional keywords. Is this in the ballpark?? Should this be done in javascript?Any suggested approaches welcomed

cheers

steve

[quote]Can anyone suggest a way to approach this type of scenario. I've had no experience yet with paintlayouts, but after a quick read of the manual I,m thinking that we could build a form with show/hide fields using conditional keywords. Is this in the ballpark?? Should this be done in javascript?Any suggested approaches welcomed
cheers

steve[/quote]



Not sure how you would do this with paint layouts.



My suggestion would to be to go with javascript, as this could be quite easy. Just set up a few if else statements and check to see if the user said yes or no to a question, etc. Then, just use a location redirect to send them to the correct page.

[quote]Not sure how you would do this with paint layouts.


My suggestion would to be to go with javascript, as this could be quite easy. Just set up a few if else statements and check to see if the user said yes or no to a question, etc. Then, just use a location redirect to send them to the correct page.[/quote]



Thanks for the taking the time to answer. Just to clarify, are you suggesting about using the javascript included in a standard page asset for the first "re-direction" part then location re-directing to 3 seperate forms/pages built in matrix to capture the submissions???



cheers

[quote]Thanks for the taking the time to answer. Just to clarify, are you suggesting about using the javascript included in a standard page asset for the first "re-direction" part then location re-directing to 3 seperate forms/pages built in matrix to capture the submissions???


cheers[/quote]



No, not for the first part, you could just use normal links to direct the person where you wanted them. My suggestion was if you had radio buttons, or select menus to choose yes or no for a question in the form, and based on that, you would direct them somewhere.

In the past I have assigned the urls to inputs or selects and then used the name of these as a variable on the redirect page. We used this for a select input on a portal page where the user could choose what subsite to go to.