Google sheets dropdown lists that update as options get seleected - google-apps-script

Hi all I’m just starting to look at google forms and sheets.
I’m wanting to create a form to vote for players in a team.
I dont want to use the multiple choice style of question, I want to use dropdown lists.
I’d like 3-5 dropdowns eg: “3 Votes”, “2 Votes”, “1 Vote”, “1 Vote”, “1 Vote”. All of these dropdown lists draw from the one sheet with the team members and would all have the same 20 odd names displayed on activation.
However, when a player is selected in “3votes” it would not appear in “2votes” or “1vote” dropdown lists, and so on, as players are selected in the 2vote and 1vote lists.
The intent is to remove the opportunity to vote for a player more than once
The form will be used by a number of people that could vote the same way,so it’s not like removing appointment options for everyone, just what the form can select as it’s being used
I can do it with multi choice radio buttons without any scripting, but it’s not very elegant esp on a phone.
I image this is a relatively simple script, but I have no idea about JavaScript or gs.
Thanks for help in advance
Eddie

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?

Have several drop down menus with independent filters

I am currently developing a script in Apps Script to assign a locker room and a locker for each new person arriving in my company.
To make it simple, I have a "Dressing" tab in my Sheets that generates a list of people scheduled to be dressed (boots, PPE, ...) every day.
I have another tab that corresponds to my locker room database.
The idea is that, for each new person added automatically in the "Dressing" tab, a drop-down menu with the list of lockers and, depending on the choice of locker, the list of available lockers can be added automatically. Small subtlety, it is possible to accommodate two people in the same locker but, if a locker is free, I want it to appear at the top of the drop-down menu.
To do this, I went through a filter (in J2 in the "BDD LockerRoom" tab) in order to have the lockers corresponding to the choice made in the drop-down menu.
I don't think it's complicated to be able to add a dropdown menu for each new person added automatically in the "Dressing" tab, but what I can't do is to be able to generate the data for several dropdown menus at the same time.
For example, I have 3 people in my "Dressing" tab. What I would like is for 3 drop-down menus to appear in column I and especially for them to be independent of each other. That is to say that if I choose a locker for one of the people, it does not update the list of lockers for the other 2.
I hope I have made my explanations clear enough.
If it is not the case, do not hesitate to ask me for more information.
Thank you in advance for your help (file link)
To clarify, I will detail later what I would like for 3 new people registered automatically in the "Dressing" tab.
First of all, for each new person, I would like in column I in the same tab a drop down menu with the list of dressing rooms to which the person can be assigned. So I created a simple drop-down menu in which I retrieve the data from column A of the "LockerRoom DB" tab.
It is for the continuation that it gets complicated. I would like to display the available lockers from the "BDD LockerRoom" tab once a locker has been selected for the people in the "Dressing" tab. Two people can be assigned to a locker, hence the letters A and B to differentiate them.
To do this, I created a filter in column J of the same tab with the formula :
=index(sort({FILTER($B$2:$B$3351;($A$2:$A$3351=Dressing!I2)*($D$2:$D3351=""))};2;TRUE();0;1)).
This allows me to display the available lockers (without names entered in "BDD LockerRoom" for A and B). It also displays first the empty lockers (without name in A) and then the B lockers. In the screenshot below, you can see that there are names for locker A(wash) in front of lockers 1_A, 2_A and 2_B. And my filter gives me the list in column J of the same screenshot.
I then created another drop down menu in column J of the "Dressing" tab in order to have all the lockers present in the filter.
The problem I have is that since I have designated Dressing!I2 in my filter, the data in the dropdown menu for cells I3 and I4 refer to the choice of the first dropdown menu.
So I would like to modify my filter so that it is updated each time a dressing room is chosen in one of the different drop-down menus (no matter how many).
Hence my request. I hope I have been a little clearer in my explanations. Please excuse me if it is not the case.

How to make Google Forms dropdown list searchable? [duplicate]

I'm trying to create a google form with a field which takes the values as a list from spreadsheet. Right now i'm using formRanger scrip but my list is to long, 200 entries, how can i make it similar to android contact search. That it will filter the entries based on keystroke.
So it seems that nothing has changed in the last 8 years and the best solution to date seems to:
put the long list as a single question on separate section
advice users to use Ctrl+F to find the needed option.
This has advantage over drop-down that it's much easier to scroll the whole page than dropdown which user can accidentally close and will need to open and search again.
It sounds like you are looking for an "Autocomplete" entry for your form.
As the user types an entry into the form field, a dropdown list appears showing matching entries lifted from a Google spreadsheet column.
The following solution using HtmlService works great for lists having over 200 entries.
I've tried it!
"Populate jQuery autocomplete list using value array from Google Spreadsheet"

How to make html selection with independent two columns?

I want to make a 'year' and 'month' selection on the mobile web using HTML selection list with independent 2 columns. Selection one doesn't affect the other selection like iPhone alarm setting.
Also, I want to make a drop-down using one click (etc. I don't want to let the people click twice to open each year and month selection.)
I've searched google and I couldn't find the answer. Anyone would help? Thank you very much!!

Autocomplete Chronoform in Joomla 2.5

I'm creating a simple form using Chronoforms, but so far I haven't been able to solve a small problem.
I would love to load two or three fields in a search done by the autocomplete element, i currently have two autocompletes working, but i can't seem to be able to load the other values into the corresponding textboxes.
I'm including the link to the form
http://cfobb.ca/index.php?option=com_chronoforms&chronoform=nomination_form
and as it can be seen, the first two fields in the first tab are working autocompletes, but i would love to have them linked so when the user chooses in any of the two, the other automatically gets filled. That selection would also trigger another sql query (that i already have, nothing fancy) that would fill the School Name drop-down menu. Also there's this code in the help tab
$form->data['_PLUGINS_']['autocomplete_processor']['result'];
but i don't really know how to use/handle it
Thanks