- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2017 07:48 AM
Does anyone know how HI support is doing this on their Service Portal? These buttons that follow me on their Portal. I can click on feedback and complete a survey. I would like to do this on our service portal.
Solved! Go to Solution.
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2017 09:31 AM
Michael,
Sorry for a late reply.
You can define it almost anywhere. On a widget level, page, etc
There are two parts that have to have a matching ID. First is on the <button> element and second on a modal (check red highlight)
You chose ID name, but they have to match. If you have more them one modal, you have to have more unique IDs
<!-- Buttons trigger modal -->
<div class="sticky-btn">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#Feedback">Feedback</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#Help">Help</button>
</div>
<!-- Feedback Modal -->
<div class="modal fade" id="Feedback" tabindex="-1" role="dialog" aria-labelledby="Feedback">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Feedback</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Submit</button>
</div>
</div>
</div>
</div>
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2017 09:17 AM
Stefan; Thank you for such details. I consider myself a beginner on CSS and portal work. My only question on your example is where do I define the target to the survey? My beginner guess is on this line of code - <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#Feedback">Feedback</button>. Specifically target=... Is that correct?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2017 09:31 AM
Michael,
Sorry for a late reply.
You can define it almost anywhere. On a widget level, page, etc
There are two parts that have to have a matching ID. First is on the <button> element and second on a modal (check red highlight)
You chose ID name, but they have to match. If you have more them one modal, you have to have more unique IDs
<!-- Buttons trigger modal -->
<div class="sticky-btn">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#Feedback">Feedback</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#Help">Help</button>
</div>
<!-- Feedback Modal -->
<div class="modal fade" id="Feedback" tabindex="-1" role="dialog" aria-labelledby="Feedback">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Feedback</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Submit</button>
</div>
</div>
</div>
</div>
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2017 04:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2017 12:37 AM
Hi Sreejith,
We have just published a free app on the ServiceNow store with this feature.
I hope that you will find this useful. Please let me know if you have any input for improvements!
/Lasse
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2017 06:19 AM
Just installed and tested this in our Dev environment and it works perfectly. Will be pushing to our Live environment too.
Cheers
Danny