Hi
Is the a way i can stop a user from attaching a document if the file name already exist within the files that are already attached.Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
You could loop through the names and remove duplicate attachments when the user submits or saves
app.execMenuItem("AddFileAttachment");
var d = event.target.dataObjects;
for (var i = 0; i < d.length; i++)
{
TextField.rawValue = d[i].name;
}
Views
Replies
Total Likes
You could loop through the names and remove duplicate attachments when the user submits or saves
app.execMenuItem("AddFileAttachment");
var d = event.target.dataObjects;
for (var i = 0; i < d.length; i++)
{
TextField.rawValue = d[i].name;
}
Views
Replies
Total Likes
Hi,
The thing is i want to stop it and displays a message saying it already exist.
I was thinking this should work "event.cancelAction()"
Views
Replies
Total Likes
And this wil not work in the cases when user add/remove attachments from the attachments panel.
So i was looking for an event which fires immediately when a user attaches/removes file from the attachment panel, so that the text field refreshes automatically.
Views
Replies
Total Likes