You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Saving from a forms collection into a subfolder by data entered from the user

posted on December 19, 2018

I have a form with a collection that looks like this. They would like to, when saving the uploads, save them into a subfolder named after the company name entered when filling out the form.

Here is the token I chose for the save folder

Instead it saves to a folder with a name made of a concatenated string of all company names from every instance within the collection.

I can't see any other choice when configuring the folder name. Is it not possible to save into a subfolder by company name?

0 0
replied on December 19, 2018 Show version history

Try using the Row index function in the dataset variable. You have to type it in manually, but I am currently using it to connect specific file uploads to the corresponding fields in a table.

The syntax is as follows

{/dataset/Table/Column[Row()]}

Basically, just add [Row()] right before the last curly bracket.

 

On a side note, marking these posts as "questions" instead of "discussions" will help other people who run into the same or similar issues because you can identify the correct answer.

2 0
replied on December 19, 2018

Nice man that's a super secret find. I didn't even know there was a reference to any alternative syntax. How did you find that?

Also didn't notice there was a "type" of post, I see it now.

0 0
replied on December 19, 2018
1 0
replied on December 19, 2018

Ah interesting, from an LF employee so he might already understand the syntax. The system is always showing us the syntax as we choose options and lets you edit it, but I don't think to mess with it often without a reference.

Thanks though! It's nice to turn a No into a Yes it can do that!

0 0
replied on December 19, 2018

Yea, I don't think I would have figured that out otherwise. It was a real life saver for one of my recent projects.

0 0
replied on December 20, 2018 Show version history

There's a note about that syntax here.

1 0
replied on December 20, 2018

Okay, but it looks like this syntax does not yet work in conditions for the gateways, is that correct?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.