- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2020 10:37 AM
How to set an editable default text in a string field, Dictionary filed, such as "Description" (sort of a help text)? I am trying to add a default text that a user will be able to change. Is there a way to do it under "Change"? Please help
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2020 01:52 PM
So, for the description field, you're not able to use HTML formatting. It only accepts plain text.
You might consider using a template.
Once you create the template, you can apply it on a record using javascript.
That would at least let you create the value "as you would see it" on the form inside your template, instead of trying to format using javascript.
I hope this helps!
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2020 10:41 AM
Hi there,
Maybe you mean something like a placeholder?
Can you try:
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2020 10:42 AM
You can set a default value using a client-script onload - check to see if the field has a value and if blank, set the value to your default text.
var msg = 'Some Default Text';
if(g_form.getValue('short_description') == '') {
g_form.setValue('short_description', msg);
}
There are other ways to go about it as well, but this is probably the simplest.
I hope this helps!
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2020 12:45 PM
Hi. I have a large text that I need to add to the Description box (sort of a template) so the user only add the text. Is there a way to do that? This gives me something but does not allow me to use html like <br> or <p>. Is there a way to do that?
g_form.getValue

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2020 01:52 PM
So, for the description field, you're not able to use HTML formatting. It only accepts plain text.
You might consider using a template.
Once you create the template, you can apply it on a record using javascript.
That would at least let you create the value "as you would see it" on the form inside your template, instead of trying to format using javascript.
I hope this helps!
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!