highlight a field red
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2016 11:51 AM
What would be the best approach to highlight a field red? The goal is to have all required fields highlighted in red if they are blank or set at a default value. I have tried using Field Styles with "
border-style: solid;
border-color: #ff0000
This works but the style shows up on list view which is a little bit too much. Would rather it just occur on the form and not list view.
Any thoughts?
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2016 12:21 PM
Make a client script:
function onLoad() {
var table_name = g_form.tableName;
var commField = table_name + '.caller';
gel(commField).style.backgroundColor="red";
}