⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

graying out an add action



richb201
  • profile picture
  • Member

Posted 07 July 2018 - 23:09 PM

I realize that there is no way to only show the add_action for certain records. Is there a way to gray out "ie can't choose" some of the add actions? I am adding this to a crud:

 

$crud->add_action('Complete This Survey', '', 'Configure/complete_survey', 'Select');

 I only want to allow this for employees who are managers. After the rendering, can I go through the crud and gray out some of these buttons?