Meekee,
I didn't post the code because I'm a bit embarrassed by it, lol. I don't understand much of what is in the code but I needed to base the "hide" upon an authfield, so I inserted the "if" for that instead of the if that was there (since I'm not using any edit feature on that page). Anyway, here's the code:
<script>
document.addEventListener('DataPageReady', function (event) {
const check = document.querySelectorAll('table[data-cb-name="cbTable"] th');
if(Number([@authfield:t1_b2]) == 1){
const deleting = (...args) =>{
let label, values
for(let a of args){
label = document.querySelector(`table[data-cb-name="cbTable"] th:nth-of-type(${a})`);
values = document.querySelectorAll(`table[data-cb-name="cbTable"] td:nth-of-type(${a})`);
label.parentElement.removeChild(label);
values.forEach(el => {
el.parentElement.removeChild(el);
});
}
}
/* In below function call, just put any number of column you want to hide, but in reverse order - from highest number to the lowest */
deleting(7);
}
});
</script>
The remaining aggregate total is the 400.00 in the upper right. It's a total that certain users don't need to see. Also, when viewed in portrait on a cellphone, it shows the Field Name as well.
Any help would be so appreciated!
PS How do you get that Hi EileenMG in your post with a link to me? I looked for forum instructions but didn't see any.
Here also is the full result with column 7 intact.