- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 02:45 AM
Hi, I have a requirement that to change the color of the the message that displayed under a variable in a catalog item. I have attached picture for the reference. How do I change the background color of the message?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 03:14 AM
Hello,
First we need to know how are you displaying the message below the field. I believe looking at the image it is a field message which is set via client script or UI policy and it is blue in color which prompts me that it is of type info
There are three types:-
- type — 'info', 'error', or 'warning'; defaults to info if not supplied. So you can change the color based on the type given in the syntax
Example:-
g_form.showFieldMsg('impact','Low impact not allowed with High priority','error');
To understand more check the below official docs:-
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 03:18 AM
Hi @Raji15
this is a showfieldmessage for exemple :
g_form.showFieldMsg('app_media', "This is a test message", 'warning');
The third parameter will be the color, by default it's blue but warning will be orange.
You have to find it in a catalog client script.
What color do you need ?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 03:14 AM
Hello,
First we need to know how are you displaying the message below the field. I believe looking at the image it is a field message which is set via client script or UI policy and it is blue in color which prompts me that it is of type info
There are three types:-
- type — 'info', 'error', or 'warning'; defaults to info if not supplied. So you can change the color based on the type given in the syntax
Example:-
g_form.showFieldMsg('impact','Low impact not allowed with High priority','error');
To understand more check the below official docs:-
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 03:29 AM
Hey, thanks much. It worked!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 03:18 AM
Hi @Raji15
this is a showfieldmessage for exemple :
g_form.showFieldMsg('app_media', "This is a test message", 'warning');
The third parameter will be the color, by default it's blue but warning will be orange.
You have to find it in a catalog client script.
What color do you need ?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 03:27 AM
Hey, thanks much. It worked!😊