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

30 views
Skip to first unread message

J Y

unread,
Sep 6, 2025, 1:34:48 AM (3 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 (19 hours 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,
2:17 AM (12 hours ago)  2:17 AM
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,
11:12 AM (3 hours ago)  11:12 AM
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.
Reply all
Reply to author
Forward
0 new messages