Field Style not working on Form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 03:23 AM - edited 10-25-2023 03:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 05:59 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 03:36 AM
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!