Web Form Software from logiforms.com logiforms.com - Easy-to-Use HTML Form Software for building order forms, Email Forms, secure forms and other web forms. Our web-based form builder makes building online forms easy. No Programming Required. Build your Order Form or Secure Form in minutes. No HTML required.


Using File Upload Fields on a Multi-Page Form


Multi-page forms do not support the file upload field. This article describes a work around for adding upload fields to a multi-page forms.

Overview
This technique involves creating a second form to handle file uploads only. The first form (our multi-page form) is the linked with the second, file upload form, via the autoresponder redirect url. From the end users perspective, they would complete the multi-page form and then be asked to upload their file (or multiple files).

This method results in two entries in two separate forms/tables. In order to link the two records together it is nessacary to pass an indentifier from the first form submission into the second file upload form. This process is explained below.

Getting Started
Lets assume we have a multi-page form named "Job Application" and we want to add a file upload field to it. Since file upload fields can not be added to a multi-page form, the alternative is to create a second form used for uploading:
  1. Create a new Single Page form and name it "Job Application Resumes"
  2. Save it in the same folder as the multi-page form
  3. Do not add any fields to the form durring the creation process
  4. In the editor, add the file upload field, and name it "resume"
  5. Next, we will add a hidden field that we will use to relate this form submission to the form submission in the Job Application form/table
  6. Insert a new field, name it "LinkID", and set the HIDDEN Attribute to TRUE. Click the Save & Close tab to add the field to the form. This field will hold the [RECORD_ID] value from the matching record in the "Job Application" table.
This form is now ready to be used. You can add autoresponders, notifications and tidy up the look and feel later. The next step is to link the two forms together.

Linking the Forms Together Via the AutoResponder Redirect URL

Next, we'll set up the autoresponder redirect url on the "Job Application" to link to our "Job Application Resumes" form and pass the [record_id] through into the hidden [LinkID] field added in the previous step.
  1. Return to your Component Menu
  2. Before we begin editing the "Job Application" Form, click the "Open form URL" link in the Component Details window for the "Job Application Resumes" form. When the form opens in a new window, highlight the entire form URL and copy it to your clipboard. We'll need this URL in the next step)
  3. Next, back at your Component Menu, click on the "Job Application" form to activate it.
  4. Next, click the Autoresponders icon and add a new STANDARD autoresponder profile
  5. Enter "Redirect Profile" in the name field.
  6. Then paste the URL of the "Job Application Resumes" into the redirect url field. By doing this, after the form submission it will automatically 'bounce' to the upload form.
  7. The final step, to associate the two records together is to pass the [RECORD_ID] through the redirect url to populate the [LINKID] field. This is done by adding '?linkid=[record_id]' at the end of the redirect URL.

    The resulting URL should look something like this:

    http://www.logiforms.com/formdata/user_forms/243_1802639/28821/?linkid=[record_id]

  8. HINT: You can pass additional values through the URL as well. In some cases, it may be easier to add hidden fields for 'name','company',etc. so that you can easily associate the two entries without having to look up the record_id. To do this, just ensure that you have added the hidden fields to the second form and use the syntax explained in this KB Article to pass multiple values through the URL.
  9. You may leave the rest of the autoresponder settings blank and click NEXT through to the end to save the profile


Conclusion
In closing, this workaround is easy to implement and is very powerful. When used in conjunction with the Publishing Wizard, you can build a puplished page that shows the Job Application Submissions with a link that will automatically get the linked data from the second table. In addition, you can set up the autoresponder redirect to use rules, where the user is asked if they have a file to upload and if they choose YES, they are redirected to the upload form and if they choose NO, then they are shown the standard post submission thank you page.


keywords: file upload,upload,multipage forms,uploading,file fields, photo


Return to KB Article Index


Sign up now and get FREE "10 Steps For Creating Stunning Web Forms That Get A Response -- Quick And Easy"

PDF Form Population
HACKER SAFE certified sites prevent over 99.9% of hacker crime.

Have a specialist contact me
Call 1-866-403-8464 in USA or 1-206-384-4671
Join our Monthly Newsletter
A great Resource for web masters with valuable tips on building your online business.




"The support and service at Logiforms is fast and responsive the friendliest people in the world are on their staff!"

Bill Span
President
NetroMedia


"You guys have done a terrific job with ease of use, flexibility, and stability in one inexpensive package."

Shahid Shah
Marketing Manager
Netspective Corporation


Web Design Resources
Check out these other great sites.



Home | Form KB | Affiliates | Affiliate Login | Features and Functionality | Support | Privacy Policy | Terms of Use | Contact

Copyright 2008 logiforms