The University offers a range of tools for accomplishing tasks through the web. In today's blog post we are going to briefly describe how Qualtrics and UT Box can be used together to accomplish file uploading with form submission.
Qualtrics is a web-form service that allows researchers and others to create simple or complex web forms to collect user input, often in the form of surveys. The input is stored and can be emailed to the form owners upon completion. However, one drawback using Qualtrics is that our University license does not allow users to upload/submit files with their forms or surveys.
UT Box is a free cloud-storage and filesharing service available to UT Austin faculty, staff, and students for business and academic purposes (check out this CNS IT Blog post from September 19, 2016). One neat feature of Box is that you can create an upload widget that allows users to directly upload files into a folder in your Box account without allowing them to see the contents of the Box folder.
In today's post, I am going to show you how to insert one of these widgets into your Qualtrics form.
- Login to your UT Box Account.
- Create a new folder by clicking the "+ New" button.
- Once the folder is created, it will appear in the list of folders you have access to, while on the right-hand side of the file list there will be the options "Share" and "...".
- Click "...", mouse over "Sharing", and click "Upload Embed Widget".
- This takes you to an overlay that allows you to change some options. Once you are pleased with the settings, look for a text box that says, "Copy and paste this code into your Website". Copy that code to your clipboard and paste it into a plain text file, keeping it handy.
Take your copied code (for example):
- Navigate your web browser to that URL and you will see something like this:
Continuing with our example, you will see something like this embedded in the page source:
Now take the portion inside the parentheses and single quotes of the document.write method. In this case, it is:
Note that this code block is an HTML tag and close tag that together define an iframe. You can tell it is because the HTML tag (everything within the first angle brackets) starts with 'iframe', while the closing tag is </iframe>. Save this entire code block somewhere handy.
- So now that we have the iframe that we need in step 6, in step 7, we will insert it into our Qualtrics form. Login to Qualtrics and navigate to the form where you wish to insert the iframe — which, as you remember, will let users directly upload files into a folder in your Box account.
- Create a new question in your survey wherever you would like it to appear and set the question type to: "Descriptive Text".
- Click on the existing text, and then click on "HTML View" (the tab looks grayed out, but it is clickable):
- Paste the iframe tags you got in step 6g into the HTML View:
- Click out of the box and you will see in the preview that your upload widget appears. If you do "Preview Survey", you will see that you are now able to submit a file.
Some notes about this:
- Users must click "Upload" in the box widget before clicking next; otherwise, the file will not be uploaded. It is advisable that you add instructions before the upload widget on its use so that user understand what is required of them.
That's it! Using this trick, you can now allow file uploading in your Qualtrics forms (and you don't even need to know how to code to do it).
Written by Ryan Parker, Software Developer/Analyst
Questions or comments? The best and easiest way to contact us is via the CNS Help Desk form.