[SOLVED] Â JavaScript Onload |
10/12/2015 6:42:38 PM |
ASPRunner.NET General questions | |
jadach authorDevClub member
I am trying to disable the edit button on the view page if the field RecordComplete is True. |
|
admin 10/13/2015 | |
The code that disables the button is correct, I guess it's just not getting triggered. Probably control's value is not 1. If this is a checkbox its value can be 'on'. var ctrl = Runner.getControl(pageid, 'RecordComplete');
|
jadach authorDevClub member 10/13/2015 | |
Thanks for the help, but no pop up box appeared. And it is a checkbox, so I changed to 'on', still nothing. |
admin 10/15/2015 | |
Alert popup should appear in any case. Something is not right here i.e. some sort of Javascript error is happening. You can check for Javascript errors if any using technique descried in this article: |
jadach authorDevClub member 10/15/2015 | |
I tried what you said and the error says ctrl.getvalue is not a function. I uploaded to demo and will put in a ticket. Thanks |
jadach authorDevClub member 10/16/2015 | |
This is solved. |