- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2022 11:43 PM
I want to hide this whole HTML field layout and just want to show the URL in the Service Portal, Please find the below screen-shot for the same:
I also tried to hide using the CSS, but it still didn't workout:
CSS:
.mce-flow-layout {
display: none;
}
Please help me with this.
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 12:22 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 12:18 AM
Hi
You can try this, that seems to work for me.
.mce-toolbar-grp { display: none; }
Where are you trying to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 12:30 AM
Hi Mark,
I am trying to do this in a widget as I have used "$sp.getForm" to populate the form and this field is inside the form, So I just want's to display the URL and not the whole HTML Field Editor.
Regards,
Shivam.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 01:21 AM
Hi
Okay, well as other people mention, the easiest way would probably be to change the data type of the field, since the $sp.getForm() returns the whole form, without being able to edit html.
But if that is not possible, then I think the easiest way would be to get the record in the server script, and then pass that to the html.
Server script example
var gr = new GlideRecord('incident');
gr.get('some sys id');
gr.query();
if(gr.next()) {
data.my_url = gr.getValue('url_field');
}
On the HTML side, you could do something like this.
<a href="{{c.data.my_url}}">URL</a>
Then you can display it, how ever you like.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 12:22 AM
Make the field read-only