This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
document.addEventListener("DOMContentLoaded", function(){ | |
function addAgentID(id,formName) { | |
var input = document.createElement("input"); // Setup the hidden input field | |
input.setAttribute("type", "hidden"); | |
input.setAttribute("name", "agentHeaderID"); | |
input.setAttribute("value", id); // this is where the given agentHeaderID is used | |
document.getElementsByClassName(formName)[0].appendChild(input); | |
} | |
// List of forms that should be targeted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
document.addEventListener("DOMContentLoaded", function(){ | |
function addAgentID(id,formName,ord) { | |
var IDlocation = parseInt(ord); | |
var input = document.createElement("input"); | |
input.setAttribute("type", "hidden"); | |
input.setAttribute("name", "agentHeaderID"); | |
input.setAttribute("value", id); | |
document.getElementsByClassName(formName)[IDlocation].appendChild(input); | |
} |