g_form.setLabelOf in onLOAD_record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 01:41 AM - edited 03-01-2023 02:07 AM
Here is my code:
g_form.setLabelOf('postal_address', 'Postal address');
var test = g_form.getField('postal_address');
test.help_text = 'Address to where invoice should be deliver';
but it is not working. I need to work on a script not data dictionary. I tried to put the code at console and found error. Please Help I just waNt to change the LABEL NAME and the BLUE MESSAGE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 01:55 AM
Just a label of the field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 02:04 AM - edited 03-01-2023 02:04 AM
Hi @Ni_a Sy ,
Try the Show field message.
g_form.showFieldMsg('fieldname, 'add your message here', 'info');
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 02:08 AM
nope. I wanted to change the field label and the blue message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2023 02:28 AM
Hi @Ni_a Sy ,
May be it not possible with script. Only we can achieve on dictionary level.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar