Google forms - Multiple choice OR checkbox - other regular expression - google-apps-script

This is not a RegEx building question.
Is there an option to add RegEx validation to the "other" option in either the multiple choice or the checkbox question type?
In other words, users would be able to select a set option OR they would be allowed to add their own option ("other"). This own option should meet the regex.
I cannot find such an option via the form design tool but was wondering if this is possible via the script.
Thanks

Answer:
Unfortunately, this is currently not supported.
Feature Request:
You can however let Google know that this is a feature that is important for Google Forms use and functionality, and that you would like to request they implement it.
You can do this by visiting https://forms.google.com, clicking the hamburger menu (≡) in the top-left-hand side of the page, selecting Help & Feedback, and then finally Send feedback in the dialog that appears on the right. Filing this request here ensures that it goes to the correct team for the feature idea.

Related

Can I use a user-entered text value in one section of a Google Form to populate checkbox options in the next section?

I'm trying to figure out if this is possible and if so any help on how to make it happen would be amazing. If not, I'd love to get an idea why it's not possible. I'm a novice and looking to learn! :)
I want to take a text response to one question in the first section of a Google Form and use that to populate checkbox options from a Google Sheet in the next section.
Basically, people check equipment out from my office for use with students and they can submit the form for extensions. I sometimes get confusing responses and would like to give them checkbox options based off the students' ID they enter in the first question.
Is any response information even available to use before the form is submitted?

AppScript. Is there a way to check if list item has a checkbox?

Google document allows to add list items with a checkboxes, like on the screenshot below:
I need to write a appscript to check if list item has a checbox, but i haven't found appropriate field/method in documentation and this kind of list item return null instead of GlyphType:
Does anyone know if it is actually possible somehow?
This isn't currently possible!
But there is already a report on Google's Issue Tracker which requests the behaviour you seek:
Add support for all glyph types in Docs (bullets and number formats)
Google does seem to know about this feature request but if it's causing problems I suggest leaving a comment to bump its priority.
You can also hit the ☆ next to the issue number in the top left on the aforementioned pages which lets Google know more people would like to see this implemented.

Moving an item from one Google form to a new Google form using google apps script

When editing a Google form manually, you can usually click on an item, and on the side appears a menu, which includes the button "import questions". This button is very useful for me as it allows me to collect questions from past Google forms and import them to new Google forms.
But I'm looking through the Forms documentation, and I can't figure out how to do this via Google apps script programatically.
Here is the documentation:
https://developers.google.com/apps-script/reference/forms/form
The closest thing to what I want is the .moveItem() method, which moves an item from one spot in a form to another. But it only works within the same form. I want to know if I could do it across forms. And ideally, instead of moving the item, it would make a copy of the item in the new form.
I considered the .getItems() method, but there doesn't seem to be a general .addItem() method I could use on the new form. Would I have to go through the painstaking process of having to identify each item type, and specify how the details of each one should be copied to the new form, including things like point values of a question and whether or not the question is required?
I want to import from forms that have all kinds of content: video, images, multiple choice questions, grid questions, number scale questions, etc. I feel that if I have to specify the details of each item type, it would take too long, and I would be bound to miss something or run into an error that may be impossible to solve. Is there not an easier way?
And if specifying each item type is what I have to do to import everything properly, has someone else created that code already that I can re-use?
Issue:
In the current stage, unfortunately, it seems that Forms Service cannot copy all items. Ref1, Ref2 Ref3. And, unfortunately, moveItem can be used for the same Google Form as you say.
Workaround:
In your situation, as a workaround, how about copying the source Google Form? And, when there are some items you want to remove, you can remove them. I thought that this process can be achieved by Google Apps Script.
But, I'm not sure about your actual Google Form. So I'm not sure whether this is a suitable method.
Future:
Recently, Google Forms API was announced. Ref When this API got to be able to be used, your goal might be able to be achieved by retrieving the object from Google Form. Unfortunately, I'm still not sure about the detail of it.

Is it possible to generate an autofill script for Google Forms?

I want to create a script to autofill based on what the respondent is filling out in a short answer or even just suggest text in a dropdown.
For example, there are over 300 different codes, which makes scrolling through that drop down list very annoying.
I want the script to had the ability to suggest an autofill once a user is attempting to type in an answer. For example, typing "T00F1..." would suggest autofilling the rest to "T00F17T0"
That way i prevent that the respondent write wrong the code
If it is not possible, what alternatives do you recommend to generate this type of forms?

How to set focus on tab in tabcontrol in URL

I am trying to call a page in my customers webapplication (Exact Synergy Enterprise)
This is the link: http://someserveridontdisclose/Synergy/docs/CSCANEduCourseCard.aspx?ProjectNr=ACPGINTV
Within this page is an Ajax TabContainer with several TabPanels. One of them is called 'Doelgroepen'
I dont have the source for this application, as i am not the developer of it. We only develop custom extentions to it.
Here's the question: Is it possible to focus on one of the tabs USING ONLY AN URL? If so How?
Thank you very much for your thoughts about this.
try to set with javascript. you'll have to write your own js to get index number you want from url, then set like this
$find('<%=TabContainer1.ClientID%>').set_activeTabIndex(2);
http://forums.asp.net/t/1127834.aspx
http://www.aspforums.net/Threads/420684/ASPNet-AJAX-TabContainer-Set-Active-Tab-Client-side-using-JavaScript/
If you do not have access to the code and if this is not part of the requirement / design specification for the application you are using (ie: what you asked the developer to do), then the answer is No.
The control does not have "native" support for URL tab selection. There needs to be specific code in the application in order to handle this.
It is however very easy to implement, if you absolutely need it, it shouldn't take much time (about 15-30 lines of code, depending on how many tabs/urls combination you need).
You can find a running sample of the AjaxControlToolkit Tabs control at the following link (the available functionnalities are described in there):
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx
If the TAB has an ID you could make it visible by adding '#tabid' to the URL.