Change field color on submit

Change field color on submit

Hi, 

I'm looking to change the color of a field on submit when certain criteria is met. I see there is a similar topic but does not quite match what I need. 

I want to change the background colour of a field when 1 option is NOT selected. I have tried the below script, and while it seems valid the field background colour does not change upon submit when the technician looks at it. 

Applies to all users
Applies to all forms
Event: on form submit

Condition - Primary unit of measure IS NOT each

Script - 

$CS.findElement(" udf_pick_100000093").css({"background-color":"yellow"});

$CS.findElement("udf_fields. udf_pick_100000093").css({"background-color":"yellow"})


                  New to ADSelfService Plus?