function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RichferRichfer 

Visualforce page modal popup

How to popup a visualforce page(within jquery modal) on mouse click?

Ulas KutukUlas Kutuk

It is really easy with boostrap, highly recommended.

First of all you need to add bootstrap css and jquery libraries. Here is the lnik: Bootstrap

 Here is the sample VF code:

 <button class="btn btn-default" data-toggle="modal" data-target="#newmodalform">New Popup</button>
                   
<!-------- MODAL  ------>
<div id="newmodalform" class="modal hide fade">
                    
        <div class="modal-header">
           <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        </div>           
       <div class="modal-body">   
               //CONTENT HERE                                               
      </div>
 </div>
<!-------- / MODAL  ------>

 

 

 

 

Aasif.K1982Aasif.K1982
Does bootstrap modal work fine, when used in a mobile device with Salesforce1 app?