Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By chanatsamon
#822960
Hi,

I tried to disable the grid with JavaScript.
Code: Select all
$("#contractorList").find("input,button,textarea,select").attr("disabled", true);
But it doesn't work with multipleFile.
Could you advise me?
User avatar
By ziadeh
#822963
Multiple files upload in grid I think its something different while disabling it, you can use this:
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").removeClass("pm-multiplefile-upload");
and if you want to enable it
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").addClass("pm-multiplefile-upload");
By MayerMonsalve
#825506
ziadeh wrote: Mon Feb 18, 2019 4:29 am Multiple files upload in grid I think its something different while disabling it, you can use this:
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").removeClass("pm-multiplefile-upload");
and if you want to enable it
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").addClass("pm-multiplefile-upload");

I used the sent JS, but it completely disables the multiplefile and it does not let me see the loaded document. I need you to let me download the loaded document
User avatar
By ziadeh
#825507
You need to disable the upload button in a Modal window, try to use this code:
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").click(function() {
setTimeout(function() {
	$("#modalUpload .btn-uploadfile").attr('disabled', 'disabled');
},0);
});
By MayerMonsalve
#825508
ziadeh wrote: Sun Jul 21, 2019 1:46 am You need to disable the upload button in a Modal window, try to use this code:
Code: Select all
$("#myGrid .pm-multiplefile-grid-icon a").click(function() {
setTimeout(function() {
	$("#modalUpload .btn-uploadfile").attr('disabled', 'disabled');
},0);
});

thank you! I tried it and it worked perfectly.for to disable the delete button, i use
$("div.multiplefile-button-delete").remove();
and this worked perfectly! Thank you very much!!!
Last edited by MayerMonsalve on Sun Jul 21, 2019 11:46 am, edited 1 time in total.

Hi, I want to have some of my workflows to be avai[…]

Hi Support, I think this is good. I too have fixe[…]

Hi, I'm facing the same error and when I run : […]

Routing Logic

Hi All I am doing a process, where i have 3 tasks […]