Is there a way to publish Google Slides to the web to open up to a specific page and NOT allow access to the other slides? For example, let's say I wanted to open up to a specific id or page number and prevent access to the clicking around on other slides. How would I do that?
Just hide all other slides by right-clicking on those slides and selecting Skip slide, except the one slide you want the user to view.
Related
I've got a Google Sheet that contains numerous hyperlinks.
I'd like to prevent the user from opening multiple instances of the same site.
ie. user clicks the hyperlink in one cell which opens the linked site in a new tab, then attempts to click the same hyperlink while the first new tab is still open - I'd like a dialogue box to appear saying that they cannot open this second new tab until they have closed the first one.
Is this possible via Google App Script?
Many thanks!
Unfortunately not. GAS has no access to your browser data and cannot know what tabs are open.Moreover, GAS has no way of intercepting hyperlink clicks from within a spreadsheet, it can only do that in a side bar, modal (or modeless) dialog, a custom or an add-on menu or an image with a script attached to it.
I have a very simple presentation that I created using Google Slides and I published it as a website (Publish To The Web). The link is below.
What I want is to prevent the user from navigating the slides (moving to the next slide or previous slide) using the keyboard. I want to force him only to click on the Next Slide / Previous Slide buttons that I created on the slide.
Appreciate your help
https://docs.google.com/presentation/d/e/2PACX-1vQMQdpDXHl2rVIk6dkj8tEcTKYhcBOlW9v-TkCGuggutriEztCrEoI9c9Eazv4_hiufvKeGPa9A4zY4/pub?rm=minimal
Unfortunately, according to an answer from a similar post A Google script to disable keys in a keyboard, Google Apps Script can't disable keys in a keyboard nor includes any service to modify the key behavior in Google Slides or any other Google services.
I know i'm late but I'm pretty sure you just have to right click on the slide and click on skip slide.
I am trying to embed a Google Spreadsheet that has a script I'd like users to be able to activate. I don't want them to be able to edit anything on the page.
I thought I could do this by
Share sheet and set to edit permissions
Restrict editing on the one sheet I want to share (the images sit above the cells, so I thought this would prevent people from editing cells but allow them to click on the button
Publish to the web
Embed the sheet
Here is the iframe I used:
<iframe width="1250" height=1000 src="https://docs.google.com/spreadsheets/d/e/2PACX-1vRRajy1TK9Y9YQg-Df3bwTy9ktxPECq6T5gS7UfkrYpV_osxwDwRuQClC168B8-o4KsCdFl4kfMYtau/pubhtml?gid=1796260078&single=true&widget=true&headers=false"></iframe>
For context the scripts hide or show different rows. Clicking "show game 2" hides a section of rows and "show game 1" unhides these rows.
The sheet embeds okay but isn't interactable. I have turned off the restricted editing to test (it's back on) and that didn't allow people to edit anything, so I am not sure what I am doing wrong here.
Any help would be greatly appreciated! Cheers!
Workaround:
Use a another button outside the embedded spreadsheet instead.
Publish a headless web-app from your sheet using doPost()
On Button click, use JavaScript to post from your website to apps script web-app
On receiving post request, hide/show the rows using your original script.
References:
Web-app
I'm using an html integration on Wix to include a google slide presentation in a specific webpage. I've got lots of different web pages that I'd like to use a specific slides from in the presentation, so to save time I thought I could do this through the HTML integration (also helps with editing).
How can I start the presentation on a specific slide?
Bonus points, is there anyway to get rid of the frame on the outside that says the source is google docs?
Each slide has a unique ID, So for each slide you wish to start it on you can
1) open the slide and go to the slide you want it to start on
2) in the URL the last param is something like "&slide=id.XXXXX"
3) In the iFrame add this "&slide=id.XXXXX" to the end of the URL string
It will now load to the first slide. Repeat for other web pages.
You can add
&rm=minimal
to the end of the URL and it will remove the controls
I've checked this issue and now I know (with getHtmlContent and setHtmlContent) how to create a webapp that :
a) takes into account the active user id
b) selects accordingly the right spreadsheet to be displaid
c) adapts a Google site page with the selected spreadsheet
But my problem is that I want to dynamically adapt the page when the user clicks the link to it (from navigation area). How can I trigger my webapp ?
Thanks for the help !
I don't think it is possible to invoke scripts from links in the Navigation area. But it is definitely possible to invoke an Apps Script on a link in the content area of a Google Sites page.
You can consider invoking your script from such a link