You are viewing limited content. For full access, please sign in.

Discussion

Discussion

Can we use a loading indicator while Forms loads table data?

posted on July 25, 2019

We are looking for a type of 'Forms is loading your request' such as 

when some of our forms complete complex lookups and load the results.

Can this be done in Forms 10.4?

0 0
replied on July 26, 2019

Yes you can use below code :

 

css:

PDloading {
  position: fixed;
  z-index: 999;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.PDloading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
}

#PDloader {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  margin: -40px 0 0 -40px;
  border: 10px solid #f3f3f3;
  border-radius: 50%;
  border-top: 10px solid #3498db;
  border-bottom: 10px solid #3498db;
  width: 80px;
  height: 80px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


 

 

javascript


//once the form has loaded and initial lookups have run, this section will execute
$(document).on("onloadlookupfinished", function () {
  // the following line hides the spinner. 
  $('#PDloader, .PDloading').css('display' , 'none');
});
 

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.