Bootstrap alert-warning vs gs.addInfoMessage style

Justin Abbott
Giga Guru

Does anyone know a way of using Bootstrap's alert-warning style in place of the default gs.addInfoMessage() or gs.addErrorMessage() styling? I'm trying to do this in a display business rule.

I've tried playing around with hacky CSS stuff, but that had undesired consequences.

Instead of this...

info.JPG

I want this...

warn.JPG

8 REPLIES 8

Chuck Tomasi
Tera Patron

Justin Abbott
Giga Guru

I'm getting closer to getting this to work, I think.



Putting this in a client script gets me very close:



var options = {};


options.sticky = true;


options.text = "Example text blah blah blah";


options.type = "warn";


new NotificationMessage(options);



The only thing that is off, is the placement. NotificationMessages appear not on the form, but in the center of the frame:



center.JPG



Since the system recognizes warn as a type of message, can anyone think of a way to bring this styling for gs.addInfoMessage()/g_form.addInfoMessage(), or something similar?


akashsrm100
Kilo Guru

HI juabott


You can go for editing macro that displays infomsg i.e info_messages.or you can do inspect element to get the   class/id of attribute and then applying css on that.



Mark Correct if it solved your issue or hit Like



Thanks


Akash sharma


spacecowboy
Kilo Contributor

Hi Justin, 

We are trying to accomplish the same use case. Have you reached a final solution, and if so would you please share?