Page 1 of 1

Disable checkbox 2 using checkbox 1 in the grid

Posted: Sun Sep 27, 2020 3:38 am
by vahid2231
Hello
My friends, I have a problem and I can not solve it :( :( :( :( :( :( :(
I have a grid called gridlist that contains 2 checkboxes named checkyes and checkno. Now when I check checkyes, I want checkno to be disabled and only the same row to be disabled, not the entire column.


Is it possible to reach this conclusion from dropdown?
please guide me؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

Re: Disable checkbox 2 using checkbox 1 in the grid

Posted: Fri Jun 24, 2022 3:51 pm
by marceloayllon
Hi vahid2231,

if you put the form inside a GRID you can access them via javascript, here is the documentation

https://wiki.processmaker.com/3.1/Grid_Control#Accessing_Grids_with_JavaScript

also your code could be something like this:

$('#gridTesting').on('change', 'select, input', function() {
//function to check values
}