Inserting a survey via markdown

101 views
Skip to first unread message

Tony Beaumont

unread,
Jul 14, 2023, 11:30:21 AM7/14/23
to codelab-authors
Hi

Does anyone have a working example of how to create a survey in a Codelab using markdown (or in HTML).  The documentation on that is a bit vague and nothing I have tried has worked.

I would like to attach some custom javascript to the survey questions too so if anyone has done that, please let me know.

Tony Beaumont
Aston University
Birmingham, UK

Marc Cohen

unread,
Jul 23, 2023, 5:47:17 AM7/23/23
to Tony Beaumont, codelab-authors
Hi Tony,

Try this syntax in your markdown file and let me know if it works for you:

<form>
 
<name>How will you use this codelab?</name>
 
<input value="Only read through it"/>
 
<input value="Read it and complete the exercises"/>
</form>

--
You received this message because you are subscribed to the Google Groups "codelab-authors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codelab-autho...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/codelab-authors/CAO3UbWYpULcmNuJm597v4c-x3L6wJfy02u2dLK%3D7xZh_YNGDrA%40mail.gmail.com.


--
Marc Cohen (he/him)
Web: mco.dev

Q: Why is this email three sentences or less?

Paul Eldridge

unread,
Oct 15, 2024, 2:31:06 PM10/15/24
to codelab-authors
Heya Marc!

If I understand correctly, this survey only collects that data through the Google Analytics API, right? If we can't use that Analytics channel, the data is orphaned and doesn't go anywhere?

Is there any way to embed a Google Form right in the markdown itself? Not just a hyperlink, but actually render the linked Google Form inside the Codelab page?

Marc Cohen

unread,
Oct 15, 2024, 3:26:49 PM10/15/24
to Paul Eldridge, codelab-authors
I'm not sure. Markdown is a superset of HTML so you could try including the form embedding code in the markdown source but I suspect the claat command will not pass it through. Might be worth a try though.

Reply all
Reply to author
Forward
0 new messages