Dropbox integration: Sending files to subfolders named from two different form fields

  • jurullc
    Asked on February 11, 2017 at 8:42 AM

    I need to create a dropbox folder each time the end user select their name and a category. Bascially, I am interested in creating a dropbox folder that organizes the photos by that person's name and the category so I don't have to figure out who is the person and what category does this belong.  Is this possible?  

  • Boris
    Replied on February 11, 2017 at 10:53 AM

    A Dropbox integration can be set to take the subfolder name only from one form field.

    This means that if you wanted to have a combined value of both Name and Category fields, we would need to use a workaround where we would first get both of these values into the same form field. We can achieve this by using a Text Box field, lets name it Dropbox Folder Name:

    Dropbox integration: Sending files to subfolders named from two different form fields Image 1 Screenshot 70

    Tip: We should hide this field, so that it does not confuse your users. We can hide a field by going to its Properties, Advanced tab, and setting Hide Field to Yes:

    Dropbox integration: Sending files to subfolders named from two different form fields Image 2 Screenshot 81

    Dropbox integration: Sending files to subfolders named from two different form fields Image 3 Screenshot 92

    Dropbox integration: Sending files to subfolders named from two different form fields Image 4 Screenshot 103

    Once our Text Box field is created, we can use an insert / calculate condition to insert the values of Select name and Select category fields into this newly added field:

    https://www.jotform.com/help/268-How-to-Insert-Text-or-Mathematical-Calculation-into-a-Field-Using-Conditional-Logic

    Dropbox integration: Sending files to subfolders named from two different form fields Image 5 Screenshot 114

    Now we have all the ingredients, and the selected values of the two desired fields will be placed into this third hidden field, so simply use this new field as your sub folder in the Dropbox integration:

    https://www.jotform.com/help/77-Upload-to-Dropbox-with-JotForm

    Dropbox integration: Sending files to subfolders named from two different form fields Image 6 Screenshot 125

    Please try it out, and let us know how it goes. Thank you.

  • jurullc
    Replied on February 13, 2017 at 10:18 AM

    Worked perfectly...thanks so much.