⚠ 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 forum is read-only and soon will be archived. ⚠

Change Button Text

button bootstrap button text

  • Please log in to reply
1 reply to this topic

#1 Digitalrecline



  • Members
  • Pip
  • 1 posts

Posted 21 August 2017 - 07: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.




#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts

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 :)

Also tagged with one or more of these keywords: button bootstrap, button, text

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users