Field Style not working on Form

Michael_Nash
Tera Contributor

Good Day,

 

I have created a style and it woks on the list but not on the form please help.

 

Field name: Truck

Field name: javascript:current.u_truck.u_fuel_type=='BEV';

Style: background-color:#71E279

 

 

Michael_Nash_0-1698229771348.png

 

6 REPLIES 6

Hi @Michael_Nash ,

 

Dot walk is not working it seems. The below Line

var fuelType = g_form.getValue('u_truck.u_fuel_type')

 

U can use GlideAjax to call a script include & return the value from script include & then validate.

 

Thanks,

Danish

 

Shruti Khaire
Kilo Sage

Hello @Michael_Nash,

 

I had work on similar use case sharing the article i refered below. Hope it helps!
Field styles on forms and lists do not behave as expected 

 

Thank you!