How to create label in case form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2022 06:22 AM
Hiii,
How to create label in case form..and I have seen annotation but is there way how to hide/display based on some conditions??
How to make it as bold?
Thanks in advance..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2022 07:25 AM
Hi Lucky,
You can use Annotation only.
You can make It bold or do any Styling using HTML value as below sample:
You can also Hide/Show Annotation. Please refer below links for more help:
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2022 09:55 AM - edited 10-07-2022 09:57 AM
Hi Anubhav,
Thanks for your reply..hide/show annotation is working for OOB tables but its not working for custom tables which are extended from case..
Do you have any idea on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2022 10:26 AM
Hi Lucky,
Can you share the code you are writing to hide or show it.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2022 12:47 PM
Hi Anubhav,
Please check the below code..
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
// Show annotation if field Is "yes"
if (g_form.getValue(test)== 'yes'){
$('my_annotation').up().show();
}
else {
// Hide the annotation
$('my_annotation').up().hide();
}
}
................
I have tried the community url which you shared but its is throwing an error as "onChange script error: TypeError: $ is not a function function () { [native code] }".