The CreatorCon Call for Content is officially open! Get started here.

highlight a field red

taddparris
Kilo Expert

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

eisenbathb
Kilo Contributor

Make a client script:



function onLoad() {


    var table_name = g_form.tableName;


    var commField = table_name + '.caller';


    gel(commField).style.backgroundColor="red";


}