How to Show cases as popup in Account Detail View?

we are using sugarcrm community edition and we want to show Cases in account detail view as a popup. Please tell us how can we do that. if someone opens the account and if that particular account has the cases in it doesnt matter opened cases or closed it should appear as popup in the Detail View of Accounts..

please help your support is appreciated.

Thanks

Parents Reply Children
  • hello Hats

    i created a popup in javascript and able to show the popup with the if statement for phone number

    but i need to show the popup with the Case details like if there is any case linked to the the account then it should show popup otherwise it should not do anything...

    Please check my code and suggest me accordingly

    thanks

               if(empty($this->bean->phone_office)){
                
                
            }               
    else {
            echo '<script type="text/javascript" src="modules/Accounts/sweetalert.min.js"></script>';   

        echo $js=<<<EOF

        <script>
        
    swal("Refund Or Chargeback!", "Please check cases for this customer", "warning");

    </script>

    EOF;
    }