Requirement regarding field coloring.

nav21
Tera Contributor

Hi Team,

 

Looking forward for you help.

There is a requirement to color field provided in screenshot based on the widget mentioned in screenshot.

Also, the changes should be visible after form is saved.

4 REPLIES 4

Pankaj kr
Kilo Sage

HI Navneeta,

 

This is in now platform or portal?

nav21
Tera Contributor

Hi Pankak, 

This is in now platform

Pankaj kr
Kilo Sage

Hi Navneeta,

 

You can use:

if(!g_form.isNewRecord())
g_form.addDecoration('caller_id', 'icon-star', 'Mark as Favorite', 'color-green');

 Please mark my answer as helpful and the solution accepted if it serves the purpose.

Regards

 

Pankaj Kumar

You can change the field name and other values as per your need.

 

Please mark my answer as helpful and the solution accepted if it serves the purpose.

Regards

 

Pankaj Kumar