How to detect click on file upload widget ?

112 views
Skip to first unread message

yves.d...@gmail.com

unread,
Jul 31, 2015, 11:14:47 AM7/31/15
to Fujitsu RunMyProcess Developer Community
Hello,

Is there a way to detect a click on the file upload widget ?

The use case is to make some other widgets inactive from the click onwards until the file is completely uploaded.

Regards
Yves

Bidisha Das

unread,
Aug 1, 2015, 2:00:23 AM8/1/15
to suppor...@runmyprocess.com
Hi,
Sorry,there is no js which can detect the click of file upload widget and run accordingly.


Thanks & Regards
Bidisha

Bidisha Das

unread,
Aug 1, 2015, 2:29:52 AM8/1/15
to suppor...@runmyprocess.com
Hi,
Sorry for above reply,you can try with the below js:

var count=id_file.getUploadedCount() 
if(count!=0)
{
widget_id.setActive(true);
}

Run this js on click of file upload widget.( Write the variable of file upload widget in listen to variables of the js)

Keep all the widgets inactive on launch.

Hope this helps.


Thanks & Regards
Bidish


Bidisha Das

unread,
Aug 1, 2015, 3:04:11 AM8/1/15
to suppor...@runmyprocess.com
Hi,
Adding to my above reply,you need to check the checkbox "Always execute" for the js so that if you delete the files in the file upload widget after upload,the other widgets become inactive again.

Also do add  :

else{
widget_id.setActive(false);
}    

at the end of the above code.


Thanks & Regards
Bidisha
Reply all
Reply to author
Forward
0 new messages