Bootstrap alert-warning vs gs.addInfoMessage style

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2016 05:55 AM
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...
I want this...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2016 06:26 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2016 06:07 AM
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:
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2016 06:13 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2019 11:26 AM
Hi Justin,
We are trying to accomplish the same use case. Have you reached a final solution, and if so would you please share?