html input component for UI Builder

Michael Culhan1
Kilo Sage

Is there an html input component that I can add to a page in UI Builder?  I see text area and input components, and an html input shows up if it is a field in a form component,  but I don't see a standalone html input component.  

6 REPLIES 6

Jagadeesh5
Tera Contributor

Hi Michael,

      I am looking for the same option. Did you find the HTML editor component in UI builder?

Regards,

Jagadeesh

aasch
Kilo Sage

Hi,

there seems to be a HTML editor component. It's called "now-record-html-editor" and can be found in the sys_ux_macroponent table.

It's not available from the component picker inside UI Builder.

 

There is no documentation as faras I know.
I've managed to add it to a page by adding it in the sys_ux_macroponent record of my Page variant in the "Composition" field.
I have not managed to make it work in any meaningful way yet: I don't know how to set or retrieve values from it.

 

Judging by the name and the lack of documentation, the component is probably meant to be exclusive to the Form controller and is handled purely automatically.

 

TomSNOW221
Tera Contributor

If there are still people that are in need of a solution:
1. There is a component called: "Document Display"

2. Change the Document Type from "Attachment" to "HTML"

3. Mark the "Enable editing" Checkbox

4. Now users can use the Component as a HTML Editor

5. Use the value payload to map the HTML Code

 

TomSNOW221_0-1755259443120.png

 

This looks interesting, but I'd consider it a workaround at best.

We can't be sure if or when ServiceNow might expand or reduce the functionality of the component. We also can't configure the editor in any way, so no configuring the controls, plugins, etc.