How to change the color and font size for warning alert below the field in catalog item
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2022 03:10 AM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2022 02:28 AM
Hello Pradeep,
You cannot do this with a showFieldMsg, as it only allow you to show a msg or an error. What you can do is to add html variables and make their visibility as true or false through UI policy or client script based on the other variable the user is clicking.
Alternatively, try to use addInfoMessage and change the color as you want, but it won't be placed below the field:
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.addInfoMessage("This font should be <font color='red'>red</font>");
}
Regards,
Marcin