I have followed a tutorial on Youtube about how to post data to a Google spreadsheet. It works and I can send words to the spreadsheet. All great, but I need to be able to use select for a true or false question in the spreadsheet. The code I am using:
public void postData() {
String fullUrl = "https://docs.google.com/forms/d/1kgVjyzamlIVSkd-BiW5iA-AHkVLqcNf9IxObyNyygTg/formResponse";
HttpRequest mReq = new HttpRequest();
String col1 = "Hello";
String col2 = "World";
String col3 = "true";
String data = "entry_221637619=" + URLEncoder.encode(col1) + "&" +
"entry_838953460=" + URLEncoder.encode(col2) + "&" +
"entry_1848159036=" + URLEncoder.encode(col3);
String response = mReq.sendPost(fullUrl, data);
Log.i(myTag, response);
}
String col3 is the variable that is using the true or false question. If I remove col3 from this code it will work but since it is a required field it doesn't work. Does anyone know how to do this? Link to the form: http://goo.gl/forms/agGnl39cXT Link to the responses: https://docs.google.com/spreadsheets/d/10Mjbwmlu_C-2OSQmMyS-5_-8GnRQhXw0Dd6_KG5onQM/pubhtml