⚠ 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

Change Button Text



Digitalrecline
  • profile picture
  • Member

Posted 21 August 2017 - 19:56 PM

Hi is it possible to change button text such as Add XXXXX to Add (CUSTOM NAME) rather than the field title. I'm using  the below to change coloun names but it would be nice to get the button to match.

$crud->display_as('ingredientName','Ingredient Name')->display_as('ingredientTypes_id','Ingredient Type');

Or will I need to do it with javascript.

 

 

Regards


Amit Shah
  • profile picture
  • Member

Posted 22 August 2017 - 10:20 AM

Well that is subject name u can set using set_subject

 

Hope that helps you achieve your goal..

 

Happy GCing :)