script for converting Google Forms checkbox results into individual line items [duplicate] - forms

This question already has answers here:
Google Apps Script e.namedValues format multiple choice
(2 answers)
Closed 7 years ago.
I have a google form that I use to log the clients that I see each day. At the end of the day I go to the form, check the boxes next to the clients that I have seen, and that gets logged in a spread sheet.
For easy reporting, I am trying to take the comma deliniated responses that the checkbox option gives and copy them into a new sheet with each reponse on a new line
I am at a bit of a loss as to how to go about it. I am new to java and still getting the hang of it. My first thought was to getRespnce and put it into an array that I could for loop. but I really have no idea how to do that :)
I found one answer here How to split and transpose results over 2 columns though I am running into trouble with that code.
Ideally I would have something that would run on form submit, take the answers from the first item, and log them line by line in a new sheet
Any help would be amazing.
Thanks!
(This is mostly a challenge that I gave myself to help learn how to code in app scripts. I have done a lot of work trying to figure it out but I realize that it is beyond my scope at the moment)

I did some more research and found the answer that I was looking for with the e.namedValues()
the helpful post: Google Apps Script e.namedValues format multiple choice

Related

How to copy edited google forms entries to another sheet - Keeping original response and edited

We are in the process of setting up a test for staff using google forms. It works great and I have enabled users to be able to edit their responses.
What we need the form to do is keep the original submitted data too so we can see how many questions the user got wrong and how many they got correct on a resubmit. Currently resubmitting the data overwrites the original. There are a lot of questions in the form so the user re submitting another would not work. Highlighting the ones they got incorrect and giving them a second chance is what I am after.
My thoughts were to copy the data to another sheet everytime either a new entry was made or when a form was edited.
I have not done much work with Google Forms or Sheets so I am starting from scratch.
Thanks,
Luke

Is there any way to break up a PDFTable onto a different page?

First time poster here...but been using StackOverflow for solutions whenever I get stuck.. ton of great information here! I will try to describe the question as thoroughly as I can and hope someone can help me out with it. I need to generate a PDF in Swift and present it on an iPad, so i decided to use TPPDF for the PDF generation and then Apple's PDFKit to present it.
TPPDF has been working great for me, however, I ran into an issue where if I create a PDFTable with an enough amount of rows, it overflows into the next page without creating a new table. The last row gets cut off about 1/3 way and the other 2/3 is generated on the next page. This creates a weird visual effect which i'd rather not have if it's possible.
I've been reading through the documentation as well as sifting through the source code to try and figure out if there's a way but I can't find a decent workaround. The only workaround I can think of is splitting up the content and creating multiple PDFTables on new pages (using the createNewPage() method). This would take a good amount of rework in my code so I wanted to post it here to see if anyone has come across this and come up with a solution.
I appreciate any help!!
-George
thanks for asking, this is actually an on-going issue which occured after adding the merge-cell feature. This is discussed in issue #243, so you take a closer look at what's going on there.

How do we share full NetLogo models here when working on a problem?

I'm pretty new on this list, and trying to answer a question posted here on StackOverflow and i am wondering if there is some standard way to post entire models here, not just the "CODE" tab portion. Or for that matter even an image of the view screen.
I don't see any place to put attachments on posts or answers. I suppose I could upload the model to the NetLogo-users Google users-group, which does have a place to upload files, and cross-reference it here. I suppose I could try to open an email channel to the user and send them email with an attachment. I suppose I could post it on GitHub.
But is there some way to attach a full .nlogo file right here that I'm missing? Some interfaces are really complicated and only looking at the CODE tab is not adequate.
And, yes since the .nlogo model is pure text I could paste the entire thing into a window here ( which would object to having code in a text window of course) but that's a lot of extra characters in the post.
Unfortunately there is not. This is actually more of a problem for the questioning than answering as it can be difficult to get the person asking the question to post the relevant bit of code, including the other bits of code that lead up to the problem and give key information like what the contents of a variable may be. NetLogo does not lend itself to MWE at all, and beginners simply don't have the experience to replace interface variables with global variables etc.
Uploading to Google users group and cross referencing is likely to get the question/answer closed as it's not complete. But StackOverflow has a different purpose than the users group - it is supposed to be focussed on specific questions with specific answers - such things as syntax problems and bugs, not design. The last thing we want is interfaces or full models. We tend to be more lenient than other areas of StackOverflow because we know NetLogo has a very high proportion of beginners without support and that MWE in NetLogo doesn't really make sense, but questions that require full models are definitely out of scope.

Is there a way to get the names/ ID's of all sheets within a spreadsheet?

I want to know either all sheets name or ID number in a specific spreadsheet, but I cannot find anything that will help me. There are many people who have done this in other languages other than swift, but swift is unique in the way it uses and handles the google sheets API. I do not even know how to get started. Is there anything anyone has that can help?
I don't know where to start, and I am having a lot of trouble with this. I want to be able to use a dropdown menu (from iOSDropDown) to select one of the existing sheets, but I need a way to find the sheets name or ID. People have done it in JavaScript, but there is literally almost no support for swift on the internet. I have already been through the sheets API's hundreds of times, and I have searched through stack overflow and other places as well.
I do not have any results.
To get the names, I ended up having a number on the sheet that I add one to every time and I put the name of that sheet right below the last sheet.

CMSMS module Availability with CGCalendar

*CMSMS module QUESTION *
Hi all,
I have asked this question on the CMSMS forum but as of yet have not received any responses, so hopefully someone here can help!
I am using the 'Availability' module in conjuction with 'CGCalendar' which is great, but in stead of buttons to go the next and previous months (powered by Ajax), I need a drop down select box to choose a new month/year. I thought I had figured this out by refreshing the page with jQuery passing thorugh new values for month and year, but although the reservations change as required, the number of days in the month and the start date are the same as the initial number.
You can view a test page here:
http://aonachmor.cahilldesigns.com/test
Hopefully this makes sense, I know it is a bit specific but you guys are professionals and someone out there must know how to fix this!
Thanks