TMeyer Posted January 19, 2017 Report Share Posted January 19, 2017 Hi, My current code is: <SCRIPT LANGUAGE="JavaScript"> function update() { var p2 = document.getElementById("cpParamVirtual10").value; document.getElementByName("cpParamVirtual4")[0].value=p2; } document.getElementByID('caspioform').onload=update; <SCRIPT> and I have it deployed in the footer of a submission form however it is not working. Virtual10 is a hidden field that loads with a passed parameter . Virtual4 is a cascading dropdown ( and on exit passed the parameter that virtual10 loads). I want to set the cascading dropdown to the value it was when the form was submitted the last time instead of resetting itself every time. Thanks for the help. Quote Link to comment Share on other sites More sharing options...
MayMusic Posted January 27, 2017 Report Share Posted January 27, 2017 I am not sure why you are having virtual 4 as cascading element but there is a syntax error on your code in this line: document.getElementByName("cpParamVirtual4")[0].value=p2; which should be document.getElementsByName("cpParamVirtual4")[0].value=p2; 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.