HI Service Portal (HI Help and Feedback) Floating buttons

Michael160
Kilo Expert

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.

find_real_file.png

1 ACCEPTED SOLUTION

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">&times;</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


View solution in original post

36 REPLIES 36

Teena Singh
ServiceNow Employee
ServiceNow Employee

Great to hear you are happy with the new widget.


Our team meets regularly with the Service Portal team and we will mention the customer interest in this widget. We have heard this from other customers as well.


Thanks.




Regards,


Teena Singh
Customer Experience: UX Strategy and Customer Insights
teena.singh@servicenow.com


ServiceNow


Screen Shot 2017-01-19 at 8.55.52 AM.png


HI Teena,



Any thoughts of sharing some of these popular widgets on Share?


Teena Singh
ServiceNow Employee
ServiceNow Employee

Good suggestion Chuck. I will mention this to the Dev team so they can do this.


-Teena


Hi Teena,



Please let me know if there is any update on having these widgets on Share.



Thanks,


Sreejith


stefanpetrovic
ServiceNow Employee
ServiceNow Employee

If you asking how to position buttons to stick to bottom of your screen then you can do that easily with css


.sticky-btn {       bottom: 0;       position: fixed;       right: 20px; }



Here you can find example that will trigger dialog: https://jsfiddle.net/stefanpetrovic/q6r40s9s/1/


Hope that helps!