How to customize or disable HTML Sanitizer on HTML fields when viewing on the "form" page within the service portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2020 10:23 PM
I want to have an HTML field at the top of my form. I also what that field to show on the Service Portal when a user click the link on a simple list and that simple list uses the page "form" to load the record.
I was able to modify the script include "HTMLSanitizerConfig" to properly handle the HTML code in the HTML field so it looks great on the backend. When I look at the same record using the "form" page on the Service Portal the HTML field is sanitized near completely. It's not completely sanitized because my links are still have the hypertext but the rest of the style formatting has been removed.
I adjusted CSS on the page "form" to hide the toolbar so it is MOSTLY fine using this...
.mce-flow-layout {
display:none;
}
but the customizations to the sanitizer don't work on this form. Anyone have any idea how to have an HTML field on the form page on the service portal properly show the HTML?
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2020 12:17 AM
Hi Tim,
As per my understanding, form has HTML type field and requirement is to show the value of that field properly on portal.
Use this in HTML code of the widget.
ng-bind-html="::<object that stores field value>"
Please mark helpful if it solves the purpose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2020 07:14 AM
Any update