Looking for the SugarLogic visibility code

I am looking for the code that controls if a field is visible or not based on the Visibility SugarLogic entered in Studio.  I have a group of fields that I have to show/hide based on a complex formula that I cant make work in Dependencies.  I have the fields hiding and showing just fine but I am looking for the code used to collapse a row if both fields in that row are hidden.  I found a way to do it (hardcoded) but I'd like something a little more automatic and less hardcoded.

Parents
  • Kenneth,

    You might want to start by looking in the file: ./include/Expressions/Actions/VisibilityAction.php

    Do a grep / find in there for row-fluid (the class of the row in a record layout) and it leads you to the code that will set the entire row to be hidden if all its children elements are hidden (I think).

    No idea yet (not investigated) if you are able to override it but you should at least be able to pull the action code from there and replicate it in your own customisations.

    Thanks,

    JH.

Reply
  • Kenneth,

    You might want to start by looking in the file: ./include/Expressions/Actions/VisibilityAction.php

    Do a grep / find in there for row-fluid (the class of the row in a record layout) and it leads you to the code that will set the entire row to be hidden if all its children elements are hidden (I think).

    No idea yet (not investigated) if you are able to override it but you should at least be able to pull the action code from there and replicate it in your own customisations.

    Thanks,

    JH.

Children