hi all, i have a tableselect element populated with data from database, and i want to enable the checkboxes on demand. i mean, if the user checked the cb1, enable the ch2, if the user checked the cb2, enable the cb3, an so on….
this is my simple code for my tableselect
$form ['tabla'] = array ( '#type' => 'tableselect', '#header' => $tabla ['header'], '#options' => $tabla ['body'] );
i am reading the #states property,i think that it needs to be done with that, but i cant figure it out how to do it.
thanks in advance!