Hhow to hide a table depending on a field value in the web?

I need to add the code in the Table HTML Tags - Style attribute

usually in the Styele attribute, it would be something like

display: “none”

instead of this can i refer to a field say by name “showTable” which would evaluate a condition written in it and return "none " or “” to hide or show the table.

display: showTable

whre showTable = @if(Field= ““Yes”;”";“none”)

Subject: Hhow to hide a table depending on a field value in the web?

why don’t you use Notes native hide-when formulas?

if you want to do this without refreshing your page, add javascript in the onchange event of your field, something like:

if (document.getElementById(‘yourFieldId’).value=‘something’) {

 document.getElementById('yourTableId').style.display='none'

}