DMXzone Bootstrap Elements Support Product Page
  Answered 
 Changing button colour based on data value
 Asked  10 Dec 2013  17:10:20 
  1 
     has   this question  
  10 Dec 2013  17:10:20 Brad Lawryk posted: 
 Is there a tutorial somewhere on how to change the colour of a bootstrap button based on a value from a database?  Replies
 Replied 11 Dec 2013  11:35:19 
   11 Dec 2013  11:35:19 Teodor Kuduschiev replied: 
  Hello Brad,
You can use the DMXzone Database Formatter and assign a different class to the button based on a value in your DB.
  You can use the DMXzone Database Formatter and assign a different class to the button based on a value in your DB.
 Replied 12 Dec 2013  03:50:35 
   12 Dec 2013  03:50:35 Brad Lawryk replied: 
  Yeah, but is there a tutorial anywhere on how to do that? 
   Replied 12 Dec 2013  07:39:53 
   12 Dec 2013  07:39:53 Teodor Kuduschiev replied: 
  Please check the following tutorial: www.dmxzone.com/go/22129/using-the-conditional-filters-in-html5-data-bindings-formatter 
   Replied 13 Dec 2013  20:10:02 
   13 Dec 2013  20:10:02 Brad Lawryk replied: 
  What about bootstrap alerts? How can I change the class of a bootstrap alert to show one class if data = No and another class if data = Yes?
I tried doing it the way the tutorial shows but it always shows the else class.
  I tried doing it the way the tutorial shows but it always shows the else class.
 Replied 13 Dec 2013  20:29:47 
   13 Dec 2013  20:29:47 Brad Lawryk replied: 
  Figured out ....... thanks! 
  
