- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2017 10:29 AM
I have a client that would prefer to have a disclaimer on their community page, but they want it as a "splash" message like an error message. However, they want to extend the timeout on it so that it lasts for 10 seconds. I have tried several iterations of different options with no luck. Here is my base code to play with, and as always, any help is GREATLY appreciated.
HTML Template
<sp-widget widget="c.cri_community_disclaimer"></sp-widget>
Client Script
function($scope, spUtil){
var c = this;
$scope.m = $scope.data.msgs;
spUtil.addErrorMessage($scope.m.disclaimerMsg);
}
Server Script
(function() {
var m = data.msgs = {};
m.disclaimerMsg = gs.getMessage("This is the content of the message");
})();
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2017 11:30 AM
Here it is. I actually looked a bit more and it could be even simpler. This is the widget you can place where you want.
This code will show the "div" and it's content for 5000 milliseconds..
This is all you need for that. But I guess you probably wanna style it some more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2017 11:16 AM
Sure, I'll see if I can throw up an example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2017 11:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2017 01:11 PM
That makes a ton more sense than where my head went with it (my blinders are still too thick from designing).
Thanks for your help!