Jump to content
  • 0

Datapages In Modal Css Framework


jhanajc

Question

Hi,

 

It would be really great to successfully publish datapages in modal blocks  (dialog box / popup windows). 

 

While experiencing some success at displaying datapages in modals, I can see there are some problems:

 

1. The entire page refreshes on loading the modal for the first time. Not really a show stopper but something to be mindful of because you see a blank white moment during reload.

 

2. In a web form datapage, if field validation on submission fails, the page does not return to the modal even when configured to do so via a modal url link. (the popup disappears).

 

3. Javascript in a page within a modal doesn't run as expected or doesn't seem to trigger at all.

 

 

Any ideas?

 

JC

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

I am having problems with a modal I put into a tabular report that is embedded into weebly site.

Without the modal code in the tab report, it renders 100% width, no scrolling

With the modal code as given in the above video tutorial, it renders at about 50% width, not responsive and scrolles vertically.

How does the linked Modal CSS interfere with the Weebly theme and Caspio CSS?

Page works perfectly in preview mode inside caspio.

Link to comment
Share on other sites

  • 0

Hi! Just an update - if you have a modal that is showing behind the Results Page, you can use this code in the Header:

<style>

.modal {
 z-index: 9999 !important;
}

</style>

In addition, if you would like to automatically adjust the size of the modal based on its content. You can use this code in the Header as well:

<style>

body .modal-dialog { /* Width */
max-width: 50%;
width: auto !important;
}

</style>

 

Link to comment
Share on other sites

  • 0

Hello - In addition to the previous post, if you have a modal and Form Elements that are not showing such as AutoComplete, Dropdowns, and Date Pickers, you can use a custom CSS to show these elements in front of the modal.

Insert this code in the Header of the DataPage.

<style>

.modal-backdrop{
z-index:4 !important;
}
.modal {
z-index: 5 !important;
}
.header-navbar{
z-index: 3 !important;
}

</style> 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...