Make the single line text field as Red
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 12:35 AM
Hi All,
Is this possible to make the single line text field in Red color?
If Yes, please any one suggest how to make the single line field text color in Red.
Thanks,
Vinuth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 01:14 AM
Hello,
You will need to go to System UI -> Field Styles.
Create a new entry, for example below:
Result:
If my answer has helped you in any way please mark it as correct or helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 01:22 AM
For particular form I want the variable in Red color, not globally
Thanks,
Vinuth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 01:24 AM
Try client script in that case.
var myVar = $('sys_display.' + g_form.getControl('your field name').id);
myVar.setStyle({color: "red"});
If my answer has helped you in any way please mark it as correct or helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2024 04:22 AM
I tried with the above script but it's not working as expected.