Hi All -
Thanks for any help offered, hoping you extension experts can lend me a hand.
I am trying to develop an extension for the following use case:
- A user selects from a listbox (ootb control) a comment category
- A users enters a comment into a textbox (extension object)
- The extension object gets the Selected values from the comment category
- The extension object gets the Enabled values from another listbox (ootb control)
During development though I keep bumping up against the following error 'Object does not support this method or property'. Strange thing is this only happens every_so_often, usually between two or three clicks within a listbox, or by changing state of the document. I am assuming this is a timing issue, an object not being complete. It always complains of GetSelected or GetEnabled when I uncomment the associated code for reading the other listbox.
I also would like to be able to get to the enabled values of another listbox, not selected, a user will not be interacting with it, I just need to get the single value that will be enabled. However I cannot seem to get access to GetEnabled on this other object after the first reference is created using GetSelected. That code is currently commented out in the attached Script.js
So basically, when using the extension, I select a comment category, key or not key in a comment and hit submit. Sometimes the proper alert window pops up, either showing me the comment or not which is great but every couple try's I get the above error message. And then of course I would like to be able to get to the enabled values of other listboxes as well for some business rules I need to apply.
The attached example does illustrate the problem I have at least on_my_machine. Windows 7 32b, IE 10, 11.2 SR2
I imagine it is a development/code issue at this point, just having a real hard time trying finding where I am going wrong. I will gladly provide more details if needed.