How to get the status of a checklist menu item with google script?

57 views
Skip to first unread message

J Y

unread,
Sep 6, 2025, 1:34:48 AM (4 days ago) Sep 6
to Google Apps Script Community
Hi,

Please see the example google doc below.  I would need to get the status of a checklist menu item.  I include a piece of code in the doc but it fails to get the status.  Can someone please help me out?  Thank you very much in advance.


JD

Michael O'Shaughnessy

unread,
Sep 7, 2025, 7:00:23 PM (2 days ago) Sep 7
to google-apps-sc...@googlegroups.com
Well, in my quick research this is unfortunately not something that Google has exposed to GAS.  Now, what I am talking abou is the "checklist menu item" in Google Docs.  This is where a box can be checked and you can format the text as "strike through" when checked.  THIS is something that you can check for!!

My next question is, does this have to be a Document?  Can you switch to a spreadsheet?  The checkboxes in a spreadsheet show up as either true or false so you can definitely check for those.

AND as always... if anyone knows anything different PLEASE do not hesitate to let me know!!  This is how we all learn... sharing our knowledge as we know it!!

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/8ef71180-4909-4e9d-acec-2434f8d8444cn%40googlegroups.com.

J Y

unread,
Sep 8, 2025, 2:17:45 AM (yesterday) Sep 8
to google-apps-sc...@googlegroups.com
Hi Michael,

Thank you very much for your attention.  Unfortunately, it has to be a document.  I am surprised that google doesn't provide an API function for a feature it supports.  It's just a wrapper function that calls its internal, corresponding, existing function.

JD

You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/15Dm31rKwhk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/CAHNYQLhDjgJZoHsL-u%2BgxQAZjYrMW1%3DfLdpa7C%2BhD_03F91TXQ%40mail.gmail.com.

Keith Andersen

unread,
Sep 8, 2025, 11:12:04 AM (yesterday) Sep 8
to google-apps-sc...@googlegroups.com
See TestDoc3
Tried every which way - app script will not read value of checkbox or dropdown in table in Google Doc. 
Work around - type in True
See my function for example.
Cheers



--

Passions: God, Family, Friends, Scripture, Data Management, Google Sheets + App Script, MS Access, Programing, sharing and much more.

Michael O'Shaughnessy

unread,
Sep 8, 2025, 6:31:38 PM (24 hours ago) Sep 8
to google-apps-sc...@googlegroups.com
Yes, I agree that Google should "let us get to it" however it could be "new".  Since you said it has to be a document let's see if we can "emulate" a check box!!


Look at the code and run it.  You will get a lot of info in the console. 

Users can type an X just as easily as clicking on a box.I also chose X just to make it look "checkboxy".  I am sure you can modify the code to check for "not empty" so they can put anything in that cell.

Just a thought... trying to help you think outside the box and give you something to work with.

Message has been deleted

J Y

unread,
6:31 AM (12 hours ago) 6:31 AM
to Google Apps Script Community
Thanks to both Michael and Keith.  I appreciate that you have tried to find a workaround for google's limitation.  I will take them into consideration if I cannot migrate to google sheet.  Thank you again!!

Keith Andersen

unread,
3:23 PM (3 hours ago) 3:23 PM
to google-apps-sc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages