I’m creating a web based database that deals with workflow. I have 16 sections that all have the same fields according to what office it represents. These sections hide when their office is not assigned to review the submitted report.
I have a ‘global resolution’ field that shows whether the status of the report is pending review or closed. I want it to show closed when a specific field in each section has a value in it showing that the corresponding office has reviewed and submitted their own section.
My first attempt was this:
@If(Status = “New”: “Submitted”; “”; PIT_AG1Closed != “” & PIT_AG2Closed != “” & PIT_AG3Closed != “” & PIT_AG4Closed != “” & PIT_AG5Closed != “” & PIT_AG6Closed != “” & PIT_AG15PIClosed != “” & PIT_AG15CorpClosed != “” & FAM_FranClosed != “” & FAM_IncClosed != “” & FAM_SalesClosed != “” & PATB_DownClosed != “” & PATB_UpClosed != “” & TTTBClosed != “” & RCBClosed != “” & CCEDClosed != “” & OPTSClosed != “”; “Closed”; “Pending”)
However, some of these fields will be hidden if the office has not been assigned to review the report. So the above code doesn’t work. How do I take into account that some of these fields will be hidden? What code do I add?