I'm developing an extensive fitness training website where clients and users can design their own workouts and schedule by using an integrated training method where they can read, view online videos and download videos to their ipods and other devices and track their progress concurrently. Within the training continuum the client can only progress to the next phase/step when the current phase/step is completed. Nor can the client/user view an higher phase/difficulty of an exercise unless the client/user reaches or passes that phase/difficulty and, of course, is a paid member. However, once completed a phase/step/exercise/schedule can be repeated.

For example, a fitness assessment MUST be done by the client/user to determine the s/he's fitness level and to also figure out which phase/step s/he should begin and what necessary corrective strategies s/he need to undertake to correct any such muscle imbalances.

I converted to Drupal because of its robust strength and functionality. My problem is I've hit a wall with multipage forms. It's very difficult do to in HTML as you can see from this example in Step 1: Warm-Up (General) - Treadmill Walking (old site). Drupal multipage form seems promising, except:.....

The fitness assessment:
1. must be taken and viewable only by the client/user.
2. Anonymous users can take the assessment but must have an account to save the data and results.
3. Results can only be saved for 30 days unless the client/user becomes a paid member.

Question: I have read all the possible materials on Drupal and other multipage forms my eyelids can see. But I am sure I am missing something. How do I put this all together. Others have done similar things on their websites. How did they do it? It would be great to have a step by step tutorial to such or similar system. I would appreciate it if someone can point me in the right direction.

New site: Under development.

Comments

scrypter’s picture

to get a v5.1 multistep form working. The article by Jeff Eaton http://www,drupal.org/node/101707 is the basis. I needed to change the name of my module form function to "mymodule_node_form". This is not excatly clear in the article. When I have time I might put together a small sample prog as several posters have recently got stuck with this. PM me if you need additional help.

www.scryptik.com - Javascript editor with syntax error checking

www.purpleoar.co.nz/scryptik - Javascript editor with syntax error checking
www.purpleoar.co.nz - Web development, Drupal consultancy

vanchisel’s picture

I am in the process of modifying and merging webform.module and profile.module into one completely new fitness_assessment.module. It's a long haul for me because I'm a Drupal newbie. I want the ability to create new fitness forms my clients can periodically complete specific to THAT client and NOT viewable by others.

For example, clients should be able to do a muscular imbalance fitness assessment at the initial stage of their training and once per month thereafter. So, the module MUST list each months evaluations accessible through the client's account. For example,

January Download Print Clear Delete
February Download Print Clear Delete
March Download Print Clear Delete

When the client clicks on 'January', 'February'.... for assessments that client had already taken, he/she can view that fitness assessment. If the assessment's age is within 10 days it can be re-edited. Otherwise the fields are disabled only for viewing. The client can always delete and re-take the fitness assessment if he/she so chooses.

The webform.module gives me the flexibility of creating forms but not the security, whilst the profile.module gives me the security but not the flexibility. I'm learning about nodeprofile and others but I'm not quite sure how that works either.

If you have any suggestion I'd be willing to listen.

deQuindío Fitness - upgrade your body