cancel
Showing results for 
Search instead for 
Did you mean: 

Visibility Rule Works on Web but Fails on Mobile

Sourabh1
Explorer
0 Kudos
37

I have created a rule that sets the visibility of a container based on whether data is available or not. This code works correctly in the web version, but it does not set the visibility to true for the Object Card Collection on mobile. I have called the rule on the onReturning event of the page, which means I need the Object Card Collection visibility to change after performing the test. Any suggestions on how to resolve this issue?

Code Sample :

  if (PhysicalStatus == "Pending") {
                PhysicalObservation.setVisible(true);
                editControl.setVisible(true);
                PhysicalNotestPerformed.setVisible(false);
               
            } else if (PhysicalStatus == "Done" && ChemicalStatus == "") {
                PhysicalObservation.setVisible(true);
                PhysicalNotestPerformed.setVisible(false);
                editControl.setVisible(false);
                ChemicalNotestPerformed.setVisible(true);
            }
            else if(PhysicalStatus == "Done" && ChemicalStatus == "Pending"){
                PhysicalObservation.setVisible(true);
                PhysicalNotestPerformed.setVisible(false);
                editControl.setVisible(false);
                context.getPageProxy().getControl('SectionedTable0').getSection('SectionObjectTable0').setVisible(true);
            }
            else {
                context.getPageProxy().getControl('SectionedTable0').getSection('NoTestPerformed').setVisible(true);
            }

Accepted Solutions (0)

Answers (0)