Jump to content

Recommended Posts

I would like to use information from any particular selected record as template information like copy/paste to create a complete new record.  This will streamline workflow when many similar records need to be created.  I do not however wish to accidentally update the original record.  I would like assistance if possible with Javascript that would disable the update button on the details section of the original record search & report data page if the user accidentally edits any information.  The moment any edit changes occur on the original record, the Update button should be disabled.

Link to post
Share on other sites

Try this on your Details Page Footer

 

basically, it listens if any change (  document.addEventListener('change', function (event)) in the page has been made, if there is, it will disable the button
 

<script>

document.addEventListener('DataPageReady', function (event) { 

  document.addEventListener('change', function (event) { 

  document.querySelector("input[id^='Mod0EditRecord']").disabled=true;

});

});


</script>

Link to post
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...