Getting the File Name of an Attachment

Hello,

I would like to grab just the file name of an attachment and save it in a variable in Javascript. Is there a way to do that in public forms?

Thanks,
Mike M.

Dear @mmendes,
You can get the file name with JavaScript, like that:

fd.field('Attachments1').value[0].file;

The 0 is the index of the attachment file.