Hello all,
First of all, im not a developper.
Thanks for any help you can give me.
I need help with checking a checkbox with a bookmarklet.
I made a javascript bookmarklet script that used to work but since a new system update at job, it doesnt work anymore.
Old: javascript:if (document.getElementById("N3:EamTransactionQty:0").value>"0" &&document.getElementById("N3:EamSubInventory:0").value=="COU"){ document.getElementById("N3:EamLocatorAllowed:0").value="%"; document.getElementById("N3:selected:0").checked = true;}
The script recognize the IF part and it still works.
Setting the % value works too.
The only issue is the checked part which gives me an error:
VM6642:1
Uncaught TypeError: Cannot set properties of null (setting 'checked')
at <anonymous>:1:50
I tried many things with firing a click on the checkbox or many ways to check the checkbox.. nothing seems to make it.
Here is the javascript or html part in the browser:
<td class="x1x x50 xmw" width="26" style="border-top-width: 0px;">
<span onchange="handleTableMultiSelection('N3:selected:0');updateTriStateCheckBoxState('N3');"><input title="Sélectionner" name="N3:selected:0" type="checkbox" value="0"></span></td>
<input title="Sélectionner" name="N3:selected:0" type="checkbox" value="0">
I cannot change anything in the html.
Is there any way I could get this checkbox checked ?
Thanks !
First of all, im not a developper.
Thanks for any help you can give me.
I need help with checking a checkbox with a bookmarklet.
I made a javascript bookmarklet script that used to work but since a new system update at job, it doesnt work anymore.
Old: javascript:if (document.getElementById("N3:EamTransactionQty:0").value>"0" &&document.getElementById("N3:EamSubInventory:0").value=="COU"){ document.getElementById("N3:EamLocatorAllowed:0").value="%"; document.getElementById("N3:selected:0").checked = true;}
The script recognize the IF part and it still works.
Setting the % value works too.
The only issue is the checked part which gives me an error:
VM6642:1
Uncaught TypeError: Cannot set properties of null (setting 'checked')
at <anonymous>:1:50
I tried many things with firing a click on the checkbox or many ways to check the checkbox.. nothing seems to make it.
Here is the javascript or html part in the browser:
<td class="x1x x50 xmw" width="26" style="border-top-width: 0px;">
<span onchange="handleTableMultiSelection('N3:selected:0');updateTriStateCheckBoxState('N3');"><input title="Sélectionner" name="N3:selected:0" type="checkbox" value="0"></span></td>
<input title="Sélectionner" name="N3:selected:0" type="checkbox" value="0">
I cannot change anything in the html.
Is there any way I could get this checkbox checked ?
Thanks !