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

Changing field color based on Null Variable

Walter Toney
Tera Expert

ok let me explain this better..

 

i have a Multi Line Text Field  "Field1"  and i am using that field to Turn the Color of the text and backgroud of another Date Field "Field2" if "Field1" is not NULL

 

I know i can do it with out code but our requirement is that we need "field1" not being null to turn it 

i have tried the following 

 

javascript:current.justification_for_urgent_request != "" ;

javascript:current.justification_for_urgent_request != '' ;

javascript:current.justification_for_urgent_request != null ;

javascript:current.justification_for_urgent_request != ;

 

but nothing seems to be working and i don't fully understand why... any thoughts

15 REPLIES 15

dmathur09
Kilo Sage

Hi Walter,

You don't require to script anything here. Just create style on that particular field. Refer below screenshot.

find_real_file.png

find_real_file.png

Hope this helps.

Regards

Deepankar Mathur

Thank you .. I have updated my question if you could read and answer that would be awesome.. thanks again.

Kindly update the code as below. It is working in my PDI

find_real_file.png

If the description field is empty. No color shown in Created field

find_real_file.png

If description has value. Color being updated in Created field.

find_real_file.png

Hope this helps.

Regards,

Deepankar Mathur

 

ok your using incident table and it's working where as im using a custom table and it's not working.