Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
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 tamasig
#822489
Dear All,

I have been trying to disable a textarea within single cell, i.e., the cell with ID gridComment in the last row of a grid (ID: gridCommentResponse). Unfortunately, the code below does not get the job done:
Code: Select all
var lastRow = $("#gridCommentResponse").getNumberRows();

$("#form\\[gridCommentResponse\\]\\[" + lastRow + "\\]\\[gridComment\\]").find("input,button,textarea,select").attr("disabled", true);
Any ideas what might be the problem? I am running ProcessMaker v3.0.1.7.

Many thanks for all the help,
Gergely
User avatar
By amosbatto
#822506
If you want to disable a single field in a grid, use this:
$("#form\\[gridCommentResponse\\]\\[" + lastRow + "\\]\\[gridComment\\]").attr("disabled", true);

If you want to disable all the fields in a row, then use this:
$("#form\\[gridCommentResponse\\]\\[" + lastRow + "\\]\\[gridComment\\]").closest("div.pmdynaform-grid-row").find("input,button,textarea,select").attr("disabled", true);

DO we have to pay tax for trade https://www.getfir[…]

Mosquito Zapper Reviews

https://www.facebook.com/sammosquitozapper https:[…]

https://www.facebook.com/sammosquitozapper https:[…]

Are you looking for a simple method to import EML […]