I have a table that is displaying data and i have a Mass action called add to my Contact.
I have a table that is displaying data and i have a Mass action called add to my Contact. whenever a checkbox related to a record is cliked and Add to My Contact is pressed, the record will be added to Myconatct Table which is a different table. Now I want to highlight the data in the 1st table which is just added in the Mycontact table.
1
Categories
- 7.9K Questions
- 926 Ideas
- 220 Discussion Categories
- 178 General
- 9 Community Feedback
- 3 Community Info
- 18 Knowledge Base
Comments
Create a css class with the background color you want for highlighted cells.
At the start of your mass action, run a javascript snippet that will remove that css class from all the existing rows on your table, andΒ add the new rows, adding your css class to them.
If you really want to pursue the highlighting new rows option, I'm sure someone can give you a full example, but here's something to at least get you started:
your CSS will probably look something like: In you mass action snippet, you'll want to do something like this:
Use jQuery to find all existing rows of the table and remove your 'newrow' CSS class
My jquery is weak, so this is just an untested guess. Next, get your selected items from your parent table and add them to your table, adding the CSS class 'newrow' to each. You'll probably want to use $.each() to loop through all the records you're adding.
There are plenty of examples of massaction snippets around, so you shouldn't have trouble finding something you can adapt.