I have a SmartForm that allows users to upload documents to a SharePoint library. The form fails if the users tries to submit a document with special characters in it (like an &).
Is there a way to accomplish either of the following?
1. validate the filename when they hit the submit button on the form, and prevent the rest of the processes from continuing? Maybe throw an error?
2. (preferred) Automatically remove the special characters before running the upload event. I'm using a SmartObject to upload the file
Right now the user adds the invalid document and the form just sits there (won't submit). It does not tell them what the issue is.
Thanks in advance.