Adam Benoit
23 posts
Registered:
01 Mar 2017
Answered
28 Mar 2017
in reply to
Missing user
Link to this post
Hi Ahmed,
When you call the Set_selectedtext method in the developer console the JS API has had a chance to load. It sounds like when you are calling it from a file the API has not loaded yet.
Please ensure that your script (or script file) is being called at the end of the page and not at the top. It might also be a good idea to wrap your script in a document ready to ensure it is called after the page is loaded, including the JS API.
Please let me know if you have any additional questions.
Adam Benoit – Software Developer
The Portal
Connector
Last modified on 28 Mar 2017 14:03 by Adam Benoit