Skip to content Skip to sidebar Skip to footer

I Need To Execute A Function() When Clicking A Button On Googledoc Sidebar

I have already created a very simple sidebar on my Google Doc as an Add-on. But, since I am not so advanced as I wanted in this matter, I'm stuck. This sidebar has simply a textbox

Solution 1:

Just to close the post with an answer, as @TheMaster commented above, I was recommended to see

the relevant section of the official apps script documentation: "Client server communication"? See info page for more details.

And so, I've fixed my code like this:

// Here is(was) my problem----------------------------------------
$('#search_phrases').click(function() {
google.script.run.higlightPhrases($('#url_text').val())
});

Thank you! @TheMaster

Post a Comment for "I Need To Execute A Function() When Clicking A Button On Googledoc Sidebar"