Can I change the List Item background color?

I have a simple list on an entry form to show “status” of several things.   I’d like the background color of the dropdown to be red for “Not Started”, yellow for “In Progress”, and green for “Complete” so that the users can quick-n-easy skim for things still needed to be completed.

I was trying to find something in suitescript to apply these rules, but not coming up with anything so far.  Does anyone have any suggestions for me?


Rookie Asked on November 1, 2022 in How To's.
Add Comment
2 Answer(s)

This isn’t really possible within the native NetSuite framework AFAIK. You’d have to do something like point to content outside of NetSuite and have an integration, which seem way overcomplicated for your use case.  What I’d recommend here is to create a saved search for the user(s) with the list items and create the highlighting there. It won’t be on the entry form dropdown, but they’ll be able to look over the entered data in the way you describe.  “Highlighting Search Results” SuiteAnswers ID 8484 is a good place to start if you want to go down that route.  Alternatively, if this definitely has to be on an entry form dropdown, probably filtering the dropdown list (which is possible via suitescript or even via custom lists/fields) would be the next best solution.

Intermediate Answered on November 15, 2022.
Add Comment

I have found a simple solution for this.   Basically, use an inline HTML field which contains a <script> tag with code to search for elements, and sets the css based on whatever rules are appropriate.   If anyone is looking for the details, hit me up and I’ll share my source and details.

Rookie Answered on January 10, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor