Welcome Guest, Not a member yet? Register   Sign In
How to change the text on a button progamatically?
#15

(This post was last modified: 01-12-2018, 01:47 PM by richb201.)

Yes. I tried out your code and your code works. I guess the problem is that MY buttons are being created like this:

 $crud->add_action('Make Active', '', 'Configure/company_update','make-active');

the company update() sets the database up and zeros out the other actives (for this user). The 'make-active' is defined as a css_class. Is there more than one type of class? There is one button for each campaign. I did a screen shot. See the Set My Campaign button? That is your button. See the six Make Active buttons? Those are my buttons. So when a user clicks one of them, company_update() gets the $row and then I can get the campaign name (ie chrysler) by using the $row number. I just am not able to update the red Active Campaign label from my company_update() function.

Attached Files Thumbnail(s)
   
proof that an old dog can learn new tricks
Reply


Messages In This Thread
RE: How to change the text on a button progamatically? - by richb201 - 01-12-2018, 01:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB