I have created a table with 5 columns. The first column identifies a year and the remaining columns are number columns. I have created a row for the column totals. Can someone tell me how to hide just the year field in the Totals row.
Question
Question
Replies
replied on July 24, 2015
•
Show version history
If you preview the source code for that field, it will be given an id value. take that value and in the CSS tab for the form, and add:
#(id) {display: none;}
That should hide that specific id field without affecting the others. Make sure not to include the () when entering the id value.
0
0
replied on July 25, 2015
There's a "gotcha" here, which is that field IDs in tables have parentheses in them, so you need to escape those when writing your CSS and JQuery.
For example, if the field ID is "Field15(5)", then in CSS you would do:
#Field15\(5\) { display:none; }
And in JQuery, you would do:
$('#Field15\\(5\\)').hide();
Note that vanilla JavaScript's getElementById() function doesn't have this escape requirement, so you can just do the following to select the field:
var myField = document.getElementById('Field15(5)'); $(myField).hide();
0
0
You are not allowed to follow up in this post.