Please create an account or log in to build a reputation and unlock more editing privileges!!!
Widget talk:Google Form
Contents |
widget doesn't render form
on wiki.familiekock.nl I want to show an example of a Google Form in a wikipage (It's my tips & tricks section) but somehow the form doesn't render.
My wiki-info: MediaWiki 1.15.1 PHP 5.2.11 (apache2handler) MySQL 5.1.34
Can anybody help me find out what the problem is? Thank you very much! My other widgets work perfectly, this is the only one giving me trouble.
Gallomane, the Netherlands
- I'm not sure, but I'd guess that either you didn't copy the key properly or you didn't set correct permissions. Please check if embed code Google Docs gives you matches HTML source that is inserted into the page. --Sergey Chernyshev 02:40, March 10, 2010 (UTC)
I doublechecked the key (I copied it correctly and it is the embed-key).
This is my wiki-code:{{#widget:Google Form
|key=dE9SMHNTZTJheVAyS1VuS0dMMUl1Smc6MA
|width=600
|height=550
}}
and this is the HTML that it renders:
<p><iframe src="http://spreadsheets.google.com/embeddedform?key=dG9YVHFWaFJEUE54S1V1V0VHNld0MHc6MA" width="600" height="550" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe> </p>
It just doesn't make sense to me. Gallomane, the Netherlands
- It looks like that's correct HTML. Can you check if it matches HTML that Google gives you to embed? --Sergey Chernyshev 03:45, March 12, 2010 (UTC)
This is the HTML that Google Docs gives me, so I changed the sizes in the widget, but the problem remains... <iframe src="http://spreadsheets.google.com/embeddedform?formkey=dE9SMHNTZTJheVAyS1VuS0dMMUl1Smc6MA" width="760" height="599" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>
Gallomane, the Netherlands
- And if you create HTML page with this code on it and then look at it with your browser, do you have a problem? --Sergey Chernyshev 22:31, March 12, 2010 (UTC)
None whatsoever...
Gallomane, the Netherlands
- It's a mystery - have no idea why it works on regular HTML page and doesn't work on a wiki page... --Sergey Chernyshev 16:19, March 15, 2010 (UTC)
I had trouble until I changed "key" in the Widget definition to "formkey"
Here's the diff that fixed it for me: http://coolapedia.com/index.php?title=Widget%3AGoogle_Form&action=historysubmit&diff=8812&oldid=8810 Jlerner 11:23, April 19, 2010 (MDT)
- Is this specific to HTTPS? or private documents or something? BTW, I still don't see a form on a page you've linked to. --Sergey Chernyshev 11:59, April 19, 2010 (MDT)
- Here's the form using the updated Google Spreadsheet Widget. (Ignore the https bit from the diff above.) Jlerner 12:14, April 19, 2010 (MDT)
- so "key" just didn't work for you? how's that different from the one on the demo page: Widget:Google_Form#Sample_result ? --Sergey Chernyshev 13:09, April 19, 2010 (MDT)
- I agree, mine only worked after changing to formkey as Jlerner did. Strangely, when using the original code the example form did show, but my new form gave a 404 until I made the adjustment. - Helen May 07 2010
- Hmm. Is there any way to figure out which forms use key and which use formkey? --Sergey Chernyshev 13:09, May 7, 2010 (MDT)
- I agree, mine only worked after changing to formkey as Jlerner did. Strangely, when using the original code the example form did show, but my new form gave a 404 until I made the adjustment. - Helen May 07 2010
- so "key" just didn't work for you? how's that different from the one on the demo page: Widget:Google_Form#Sample_result ? --Sergey Chernyshev 13:09, April 19, 2010 (MDT)
- Here's the form using the updated Google Spreadsheet Widget. (Ignore the https bit from the diff above.) Jlerner 12:14, April 19, 2010 (MDT)
thanks Jlerner , I also use your way , and it working fine with me --محمد مصطفي 06:20, December 15, 2010 (MST)
Change link to secure connection?
It seems like the default behavior should be to link to the secure version of the form. I changed the code on my site to use the https:// version of the form. Jeremy 14:11, December 21, 2010 (MST)
Google Form format
To get this to work with the new format, I had to change the 'includeonly' portion of the text to:
<includeonly><iframe src="https://docs.google.com/forms/d/<!--{$key|escape:'urlpathinfo'}-->/viewform?embedded=true" width="<!--{$width|escape:'html'|default:300}-->" height="<!--{$height|escape:'html'|default:400}-->" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe></includeonly>
Also, this only works if your browser is logged into a Google account. Other users just see a blank space.