Change the background color of a field

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
kgeorge
Posts: 16
Joined: 2020-02-16 16:14

Change the background color of a field

Post by kgeorge » 2025-05-15 19:04

Good Day All,


Hopefully this is an easy question.

I would like to set the field background color on specific fields. I want to highlight fields that need to have info entered but do not want to make them required. Is there some way to do this?

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1705
Joined: 2018-04-01 10:12

Re: Change the background color of a field

Post by pbottcher » 2025-05-17 19:43

Hi,

can you please be a bit more specific, as there are different kind of field and the need to be adressed diffenerently. As a starting point you can add through the hooks file some css code that would change the background of a field.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

kgeorge
Posts: 16
Joined: 2020-02-16 16:14

Re: Change the background color of a field

Post by kgeorge » 2025-05-18 17:08

Hey there,

Yes I simply want to highlight the BG color of a field or a row for a variety of fields, regardless of the value in the field. Basically, when a user opens a record there will be certain fields that are either required or that I want to which I want to call attention. I would like those fields /rows highlighted by changing the BG color of the row or the field. The fields to be highlighted may change over time.

I was given this JS code to put in HOOKS/jobs-tv.js but it doesn't work. I suspect it is close though:


$j(() => {
// highlight the SF keywords column
$j('.jobs-SF_keywords').addClass('warning')
})

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1705
Joined: 2018-04-01 10:12

Re: Change the background color of a field

Post by pbottcher » 2025-05-24 18:26

Hi,

just to clarify, are you talking about the tableview or the detailview.. Input fields are usually used in the detailview. The tableview only displays your table content.
It could be very helpful if you post an image to show what you try.
For the input field it is important to understand what type of field that is, as they behave quite differently.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

User avatar
lramirez
Veteran Member
Posts: 81
Joined: 2019-11-01 23:23

Re: Change the background color of a field

Post by lramirez » 2025-06-23 20:37

Luis Ramirez R.

Post Reply