Multi pages or a better way?

I am looking for a way to handle forms with perhaps 100 fields? Is it best to use pages (but I can’t see a way to hide pages depending on responses) or some other method?

For example, no point asking lots of questions about children/pregnancy if the user has stated they are male. So it would be nice to hide that page with those questions.

Hi Bernie,

I am not sure would this really solve you problem or is this feasible, but what you can do is you can divide your fields in number of form application.

For example, those which are mandatory fields for every one should be included in first form, named General. Insert this values in database and at the same time, check if the gender is male or female and redirect accordingly through onAfterInsert event. For instance, If gender is male, redirect directly to third form and if its female, redirect to second form.

Hope this helps.

it might be interesting to group the male and the females by block, and to intervene by hiding or letting the fields see the results, it is necessary to categorize the probable answers by groups, at this moment it is useful to decide how many groups can be assimilated to blocks,
pages may be problematic, compare pages to sets of people, blocks to genders, and lines of conditions, all will come alone

The solution could be really simple:

  1. create the form and generate several blocks within the form…

  2. lets say that you use a field {sex} type “Select”, in that case you can create an AJAX event for the field in the ONCHANGE event. and set the configuration to “refresh the form”

  3. use the sc_block_display(Block_Name, on/off) macro to hide or show parts of the form as required.

regards