mdav20 Posted June 22, 2017 Report Share Posted June 22, 2017 I have the following code to automatically check a yes/no if there is a value in a field. It works when I preview it in Caspio but when it's deployed to my Weebly site and live its not working. Any ideas? Quote <script> function fb() { if (document.getElementById("EditRecordhrs_removed").value) { document.getElementById("EditRecordhrs_ended").checked=true; } else { document.getElementById("EditRecordhrs_ended").checked=false; } } document.getElementById('Mod0EditRecord').onmouseover = fb; </script> Quote Link to comment Share on other sites More sharing options...
Mathilda Posted June 29, 2017 Report Share Posted June 29, 2017 On 6/22/2017 at 0:51 PM, mdav20 said: I have the following code to automatically check a yes/no if there is a value in a field. It works when I preview it in Caspio but when it's deployed to my Weebly site and live its not working. Any ideas? Perhaps script executes before the datapage is loaded. Try changing the first line of code: window.onload = function fb() Quote Link to comment Share on other sites More sharing options...
mdav20 Posted July 18, 2017 Author Report Share Posted July 18, 2017 On 6/29/2017 at 10:02 AM, Mathilda said: Perhaps script executes before the datapage is loaded. Try changing the first line of code: window.onload = function fb() Sorry for the delay, I tried this and still having the same problem. Thank you Quote Link to comment Share on other sites More sharing options...
Mathilda Posted July 20, 2017 Report Share Posted July 20, 2017 On 7/18/2017 at 10:00 PM, mdav20 said: Sorry for the delay, I tried this and still having the same problem. Thank you If you don't pass parameters to/from the datapage, try deploying in iframe. Perhaps script or css from CMS affects the datapage Quote Link to comment Share on other sites More sharing options...
mdav20 Posted July 20, 2017 Author Report Share Posted July 20, 2017 Thanks for the information. Caspio support figured it out, I have multiple datapages with update buttons on a single webpage. Causing the hover over the update button not to work since it was below the first update button. Thanks again! subraasingapore 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.