JS to hide unused banded rows

Forums Modern DFFS JS to hide unused banded rows

Viewing 1 reply thread
  • Author
    • #37371

      I am using SPJS on a form and have CSS for the banded rows.
      tr.sbs_OuterTR:nth-child(even) {
      tr.sbs_OuterTR:nth-child(odd) {

      I also have some rules that hide rows where appropriate, but the blank banded rows still display. Is there any JS I can use for DispForm and EditForm to hide the blank banded rows?

    • #37377
      Alexander Bautz

      If you use code to hide fields in a row with side-by-side fields there is unfortunately no built in functionality to hide the “outer” row when all fields in the row have been hidden by rules.

      The only way to do this is to use custom js – for example on an interval – to check if all fields have been hidden and then hide the outer row.


Viewing 1 reply thread
  • You must be logged in to reply to this topic.