How to upload multiple attachment with the file attachment type variable field in service portal

pradeep37
Tera Contributor

I have a requirement in one of use case, where I need to create a variable of file attachment type in service portal form page. so from there I can upload multiple files at a time.

I knows, attachment variable accept only attachment at a time. but I have a requirement to upload multiple attachment at a time. please suggest.

Thanks and Regards

Pradeep Sharma

 

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

not possible.

it can hold only 1 file at a time

If you want multiple files then you can use OOB paper clip icon or create those many attachment variables

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@pradeep

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Aniko Hegedus
Tera Expert

Hi,

I would definitely recommend using the "old"  OOB way of adding attachments.
If - for whatever reason - that is not an option, you could create multiple attachment fields, hide them and with client scripts make them visible if the previous one has already been populated with a file. But let me repeat, that this is not a recommended solution in any way, rather a last resort.

Best,
Aniko