Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by oscarrpl

  1. Thanks for your reply. The console doesn't show any errors now, however the script doesn't seem to be assigning the value to the "Total" field... what else could I be missing?
  2. Thanks for replying, sadly I can't use that method because it will reset everything and there are other parameters holding information that I can't just reset yet. I'm thinking maybe the answer will be to create a button with javascript and have it run the code onclick, rather than refreshing the page with a JQuery. Sadly I'm a beginner and haven't found a code snippet I can modify to do this...
  3. <script type="text/javascript"> function calculate(){ var pm1 = document.getElementById("cbParamVirtual3").value; var pm2 = document.getElementById("cbParamVirtual8").value; var pm3 = document.getElementById("cbParamVirtual13").value; var pm4 = document.getElementById("cbParamVirtual18").value; var pm5 = document.getElementById("cbParamVirtual23").value; var pm6 = document.getElementById("cbParamVirtual28").value; document.getElementById("EditRecordTotal").value = pm1 + pm2 + pm3 + pm4 + pm5 + pm6; } document.getElementById("Mod0EditRecord").onmouseover=calculate(); </script> There's my code, I don't know why it's not executing. I tried using the Inspect option in my browser and found this... being called on this line var pm1 = document.getElementById("cbParamVirtual3").value; The field is not null, so I inspected the field I inspected that field and the inspector tells me the Id of that field is actually as follows: So it seems a random set of characters is being added at the end of all my fields, making me unable to "getElementById" since I'll never know what the random set is going to be... How can I either find out that random set or stop it from being generated? Thanks!
  4. Does anybody know how to do this without Parameter 1 reappearing when I click the link to reset parameter 2 to 0? Wow thanks for the overwhelming response
  5. I have a datapage where I need to reset some of the parameters to 0, but not all of them. How can I add a button/link that will reset certain parameter values to 0 and reload the page to show the changes? Here's what I'm trying but is not working... I have 2 parameters and need a button to reset each respective parameter, so I inserted an HTML Block with the following link: <div id="cxkg"><a href="MyDataPageLink&Parameter1=0">Delete</a></div> this reloads the page with the field cleared, however when I try to erase the second parameter with: <div id="cxkg"><a href="MyDataPageLink&Parameter2=0">Delete</a></div> the page reloads, the 2nd parameter is gone but the 1st is back to what it was before... Is this because the parameter is not saving? or is it some sort of auto-fill issue... Please help! Thanks!
  • Create New...