Elderberg Posted August 7, 2021 Report Share Posted August 7, 2021 Hi there, below code runs before the pop-up window loads and renders the field i'm trying to reference. I've tried to use DatapageReady event handler but this doesn't seem to work as I thought it would. alert(document.getElementById("BulkEditDelivery_Status").value); Is there a way to run javascript AFTER the pop-up window loads? Quote Link to comment Share on other sites More sharing options...
TellMeWhy Posted August 9, 2021 Report Share Posted August 9, 2021 On 8/7/2021 at 4:56 PM, Elderberg said: Hi there, below code runs before the pop-up window loads and renders the field i'm trying to reference. I've tried to use DatapageReady event handler but this doesn't seem to work as I thought it would. alert(document.getElementById("BulkEditDelivery_Status").value); Is there a way to run javascript AFTER the pop-up window loads? Will setting a timeout work? This checks if the BulkUpdate Form exists, and then waits 1000ms to show the alert, you can change the value to your preferred. <script> if(document.getElementById('BulkUpdateForm')){ setTimeout(function(){alert("test"); }, 1000); } </script> 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.