Anyway, even if I upload NO files, the "invalid value" msg appears and the process cannot be started by the submit button.
Is there anything I can check/verify ?
Thank you!
Luigi
********************************************************
/* TO CHECK IF FILES ARE UPLOADED TWICE */
var upload = [[attachments_others]];
var is_ok = true;
for (var i = 0; i<upload.length;i++){
for (var j = i+1; j<upload.length;j++){
if (upload[i].name.toLowerCase() == upload[j].name.toLowerCase()){
alert('File name: "' + upload[j].name + '" already uploaded.');
var is_ok = false;
break;
}
}
if (!is_ok){
break;
}
}
if (!is_ok){
false;
}
else{
********************************************************
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/e39cb15b-23a5-4f0c-916a-18131c9763fc%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
Hello Luigi,You can add this validation script inside JavaScript widget and use value variable of file upload widget to JS widget as "Listen To Variables". This script executed only when you select any file for upload. Whether you are select or not select any file to upload, it will not create any problem to proceed your process.Please find some Screen shots for more clarification.If still facing any issue, please don't hesitate to contact with us.Best RegardsGunjan RajgureFujitsu - RunMyProcess Support
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/bc8a09dd-f83f-4de4-8d7f-e1770fabc6d0%40runmyprocess.com.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/0e3a803d-f133-4936-a363-6be0ad74c8a2%40runmyprocess.com.