- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2020 06:48 AM
Hi Experts,
I have a requirement where on a selection of a variable value on Service Portal, I should display a multi-line message which will have colored text in between and embedded URLs like we have for HTML pages.
It should be displayed only when a specific value is selected and the content will change based on different values. Example;
Information
This is a test message, it can have anything
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2020 07:18 AM
I recommend creating a new macro variable and configuring a widget for that one, which would just need the HTML required for the message and links. Then you can show/hide that variable with a UI Policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2020 07:18 AM
I recommend creating a new macro variable and configuring a widget for that one, which would just need the HTML required for the message and links. Then you can show/hide that variable with a UI Policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2020 07:34 AM
If I have to display 10 different messages, I might have end up creating 10 variables and 10 widgets to display different messages.
Is this the approach you recommend or anything else you have in mind?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2020 07:43 AM
If that's the case, I would still recommend using macro variables with a widget. AngularJS is great for displaying dynamic content, so based on certain conditions a single widget can display different messages for you. Are these 10 different messages all determined by/dependent on other variable options?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2020 07:48 AM
Message content will not be derived from any variables but different messages needs to be displayed when a value is selected from one of the variable.
For example, I have a variable called "Category" which has values Mobile, Tablet, Computer
If Mobile then "Some text about mobile"
If Tablet then ""Some text about mobile" etc