Jump to content

Javascript in "Configure Fields for Bulk Edit" page


Recommended Posts

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?

 

Link to comment
Share on other sites

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>

 

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
Reply to this topic...

×   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...