Set Rich Text Value in client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2020 12:58 AM
Hi Everyone,
I want to use client script to modify the rich text value in the Rich Text lanel type. Does anyone know how to implement it?
- Labels:
-
Service Catalog
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2020 01:53 AM
Hi,
Did you try to set html string using g_form.setValue()
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2020 02:33 AM
Hi Bawiskar,
I used used g_form.setValue("banner"), g_form.setValue("bnnder.rich_text") and g_form.setValue("rich_texk"), none of these approaches will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2020 04:33 AM
Hi,
which is the table and what is the field name?
did you try this
g_form.setValue('field name', 'my text');
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2020 06:45 AM
Hi,
This is CatalogVariable, not fields.