Topic RSS
4:40 am
- URL to the FORM: http://www.handsurg.com/blog/patient-history-form/
- The browser used: FF3.5 mac
- cforms version: 11
- Your Wordpress version: 2.8.4
[desc]: I could really use some help in determining how to handle what the client wants to do with this ridiculously complex form. Essentially, they want a "verification page" where the patient confirms all of the data entered BEFORE it gets posted in the database; once, they "verify", the data gets submitted to the cforms database and the patient can then print the form (I already have the print form prepared).
What I'm uncertain of is how to handle the transition from page 1 to the verification page. My best guess is that I could change it to a multi-part form and have all of the variables displayed from post…and just have a single "This info is correct" button/checkbox at the bottom that would then submit the form data into the database. If this is a possible solution, can someone give me an example of how I could get those post values into the "verification page" (b/c I'm not understanding the help well enough to develop a solution at this point); if not possible, anyone have ideas (or might I be overlooking a really nice feature that does all of this for me already?)?
EDIT: Sorry…one thing I forgot is that if there's an issue on the "verification page" (patient entered data incorrectly), they need to be able to use a "previous page/back button" option to edit the content. It sounds like this feature works on multi-part forms, which is why I was thinking that might be a good solution…but, open to alternatives that accomplish that requirement.
I really need a solution FAST, so I appreciate ANY reasonable suggestions.
Thanks,
Dave
10:22 pm
March 6, 2005
Offlinerocketman1223 said:
[desc]: I could really use some help in determining how to handle what the client wants to do with this ridiculously complex form. Essentially, they want a "verification page" where the patient confirms all of the data entered BEFORE it gets posted in the database; once, they "verify", the data gets submitted to the cforms database and the patient can then print the form (I already have the print form prepared).
easy: use the multi-part/page feature.
check out the example on the HELP! page.
I really need a solution FAST, so I appreciate ANY reasonable suggestions.
why FAST? might want to hire a web developer…
2:12 am
I understand the multi-part form option, but it's the re-displaying of the 120-150 values that has me concerned (custom coding that seems very slow). is there something in the multi-part function that will auto-display existing/carryover fields/values into the 2nd form? That question doesn't seem to be answered in the Help! section…I'm also unclear as to what constitutes a form as using a "custom variable"? And how are multi-word fields like "Please select all that apply:" into your {cf_form_Email} example:
Accessing {custom variables} in the final form differs from how you would reference these in individual forms. Use the mail() example in my-functions.php to examine the user data array; e.g. {Email} would become {cf_form_Email} (for the first form of the series).
I'm a web developer/designer, but I'm short on time (too many other projects to work on right now); I would consider sub-contracting if the expertise was there to finish it quickly (and comply with the design)…
Thanks!
6:56 am
March 6, 2005
Offlinerocketman1223 said:
I understand the multi-part form option, but it's the re-displaying of the 120-150 values that has me concerned (custom coding that seems very slow).
the quick way: if you need to redisplay all fields, you can add custom IDs/Names to each field, clone your form #1 to form #2, then flag all fields "disabled" (not read-only!, otherwise you'll end up duplicating your fields) – done. make sure both forms are enabled for custom ID's / Names (core options).
is there something in the multi-part function that will auto-display existing/carryover fields/values into the 2nd form? That question doesn't seem to be answered in the Help! section…I'm also unclear as to what constitutes a form as using a "custom variable"?
a custom variable (vs. a system/cforms variable) is any variable derived from the form itself, e.g. {Your Name} referencing the field with the exact label "Your Name" (as it is being tracked in the DB).
I'm a web developer/designer, but I'm short on time (too many other projects to work on right now); I would consider sub-contracting if the expertise was there to finish it quickly (and comply with the design)…
Any takers in this forum? (although I think it can be done rather quickly using the above approach)
6:27 am
Thanks for the help (this solution is much more efficient)!
I have one question regarding a current problem after configuring this; after verification submission, the tracking database adds duplicate (empty) records for each submission…not sure why, but I've tried a lot of variations for the settings on the multi-part form and have had no luck. Thoughts?
8:54 pm
March 6, 2005
Offlineif you're on a multi-part enabled form and have disabled DB tracking for this form, no records at all should be stored of that form.
certainly no empty records…
7:49 pm
I'm a bit confused on your response; I need it in a database…it puts the right content in the database, but for some reason it also drops a 2nd set of fields into the database (and they are all empty).
It seems like the 2 part form might be causing duplication in the database…is there a known issue with database usage and multi-part forms?
I'm also curious if there's a way to extract the database entry's submission ID on the next page (after they submit the verification form)? If I use a redirect action, is there a way to still submit all of form information AND do what I want with the ID or does the database tracking get complicated once you do a redirect instead of a confirmation page (I'm assuming I can't extract the ID on the confirmation redirect page – let me know if that is incorrect).
Thanks again!
7:20 am
March 6, 2005
Offlinerocketman1223 said:
I'm a bit confused on your response; I need it in a database…it puts the right content in the database, but for some reason it also drops a 2nd set of fields into the database (and they are all empty).
what fields, from what form(s)?
when you turn off DB tracking for those form(s) do then get any data (or just empty duplicates)?
It seems like the 2 part form might be causing duplication in the database…is there a known issue with database usage and multi-part forms?
did you flag (checkbox) all additional, hidden fields 'disabled' ?
if those empty fields still get recorded, you may have to rethink the strategy, and abandon the thought of carrying over form #1 fields into form #2 but instead use a customized 'success' (info) message to redisplay previous form's fields back to the user by properly {referencing} those.
I'm also curious if there's a way to extract the database entry's submission ID on the next page (after they submit the verification form)?
via the system variable {ID}
If I use a redirect action,
for "redirect after success" yes, not if you choose (redirect) an alternative form action.
is there a way to still submit all of form information AND do what I want with the ID or does the database tracking get complicated once you do a redirect instead of a confirmation page (I'm assuming I can't extract the ID on the confirmation redirect page – let me know if that is incorrect).
you could use my-functions.php to catch the redirect event (inside the logic routine), then modify/add the submission ID (it's stored in a global var) to the redirect URL as a variable.
10:12 am
hi,
did you get it working finally?
I'm currently working on the same issue, and did the duplicate way, like Oliver suggested.
So far it's working (in some browser), but if I click the submit button on the final form (the verification form), it resets all fields, so they are empty again.
Here is it for tryout: http://tinyurl.com/cvywg7m
Most Users Ever Online: 959
Currently Online:
54 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
tracedef: 43
mores: 21
Gyrus: 20
frozenwaste: 18
asuffredini: 15
photoworks: 14
Member Stats:
Guest Posters: 3568
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5172
Posts: 18414
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote









