Timeline for How to hide columns using "equals" rather than "contains"?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 9, 2019 at 21:32 | comment | added | Workyworkwork | Got it. My lists don't have data yet, so it's not a big deal if I have to recreate the columns. | |
May 9, 2019 at 21:29 | comment | added | Dylan Cristy | Glad it helped, but keep in mind that if you go back and "redo" all your columns, you will technically be creating brand new columns. When you create the columns, SharePoint assigns it an internal name and an ID, and those can't be changed. So you would have to create the new columns with the controlled internal names, but then you wold have to copy any data in the old columns they're meant to replace into the new columns. | |
May 9, 2019 at 21:14 | comment | added | Workyworkwork |
Awesome! This fixed it! Thank you for the detailed explanation. I might go back and redo all my columns that have spaces because that is super annoying. For anyone else with this problem, here's the full snippet I used: <script src="http://code.jquery.com/jquery-1.7.2.min.js" type=text/javascript></script> <script type="text/javascript"> $(document).ready(function(){ $('nobr:contains("B")').each(function() { if ($(this).text() === "B") { $(this).closest('tr').hide(); } }); }); </script>
|
|
May 9, 2019 at 21:12 | vote | accept | Workyworkwork | ||
May 9, 2019 at 20:58 | history | answered | Dylan Cristy | CC BY-SA 4.0 |