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

Question

Question

I have an upload field in a table. Is there a way to require that all filenames be unique?

asked 21 hours ago

I have an upload field in a table. Is there a way to require that all filenames be unique?

Thanks in advance!

0 0

Replies

replied 21 hours ago

Why do you want them to be unique in Forms?

0 0
replied 20 hours ago

Thanks for your response!

There should be exactly one receipt per transaction number and this would validate that.

 

0 0
replied 20 hours ago

Can't you change the setting on the upload field to only allow 1 file? I feel like I'm missing something.

0 0
replied 20 hours ago

Each upload field allows only one file. However, there are multiple rows in the table and I want to ensure that the end users don't drag the same file into more than one row.

It also causes problems with the workflow that processes the stored files. If the filename changes when stored (ex. adding  "(2)"), the custom query against Forms can't find the associated row data for indexing.

Thanks!

0 0
replied 20 hours ago

Ah, so you want the receipt to be unique when compared to the other upload receipts. I have not tested this, but using JavaScript in the Modern Designer, there is getFieldValues. I would be curious to see what it returns for an upload field when a file is uploaded.

0 0
replied 19 hours ago

I'll give it a try. I'm new to javascript in the new designer, but can probably figure it out. Thanks!

 

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

Sign in to reply to this post.