simsalabim/sisyphus

Arbitrarily saves text input for Google forms

themisseducated opened this issue · 1 comments

I have a customized Google form where I embedded two jQuery plugins: a validator and sisyphus. I noticed an odd behavior when I use your plugin on my form. Particularly, it has problems consistently saving text input (both for <textarea></textarea> and <input type="text">.

Based on my observations, it seems that the last text input activity doesn't get saved.

Case 1: I answer a multiple choice question (<input type="radio">), enter some text in textarea, then answer another multiple choice question. In this instance everything is saved.

Case 2: I answer a multiple choice question, then enter some text in textarea. In this instance, textarea input does not get saved.

Case 3: I enter some text in textarea. In this instance, nothing is saved.

Case 4: I enter some text in textarea 1, then proceed to entering text in textarea 2, and even more text in textarea 3. In this instance, nothing is saved.

This is the code I'm using for the plugins, which are placed between <head></head>:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&quot;&gt;&lt;/script>
<script src="sisyphus.min.js"></script>
<script src="jquery.validate.js"></script>
<script>
$(document).ready(function() {
$('form').sisyphus();
$('#surveyForm').validate({
meta: 'validate',
});
});
</script>

This is an example of how a textarea looks:
<textarea name="entry.1.single" rows="8" cols="75" id="entry_1" maxlength="750"></textarea>

*name is assigned by Google Docs when creating the form

I'm going through my codes over and over to see whether there's some error I haven't fixed yet. I'm sure there's nothing wrong with this plugin, since it works very well in your demo, EDIT: meaning the textarea does get saved without any prior non-text activity.

I just hope you can give some guidelines to help me make sure that it works properly. (i.e., To what kind of errors is the plugin sensitive?)

Thank you.

P/S - Having problems showing the indentation of the scripts. Assume for now, that the format is correct, since I had it checked.

I am sorry I could not help. This issue is pretty old and I am hoping that you finally found a solution.