Googledocs spreadsheet script to open links from several fields on button click? - google-sheets

I have several fields where I have several hyperlinks, lets say in fields A1:A10. I want to create Button A and Button B and put under it script so on Button A will open all links from range A1:A5 and on Button B will open all links from range A3:A10.
I know I can open them with right mouse button click, but I want to assign specific range to specific button.

Related

How do I protect a shared google sheet with and still allow the script button to work?

I have a sheet that is shared with quite a few people. They are supposed to fill in 5 cells, click the script button and it will insert the text below and sort it by date.
I created the script and assigned it to the button for this.
I need to protect the entire sheet except the 5 cells and the button.
When I add the protection nobody can click on the button. Is there a workaround?
Answer:
You can use Protected Ranges to protect the sheet from edit with the exception of pre-defined cells.
Steps:
Follow the menu item Data > Protected sheets and ranges from the Sheets User Interface.
Click on the + Add a sheet or range button in the newly-opened sidebar.
Click the Sheet tab.
Select which of the Sheets you wish to have protected.
Mark the Except certain cells check-box with a click (✓) and select in A1 notation the 5 cells you wish for users to edit. For example D1:D6.
Click Ok
Click Set permissions
Keep Restrict who can edit this range selected with Only you as the selection in the drop-down, and press Done.
This is enough - from here anyone you share the sheet with will have edit access to the specific five cells you specified in the exception rule. The button is also clickable as long as the user has authenticated the function to run as them.
References:
Docs Editors Help - Protect, hide, and edit sheets

Adding multiple dropdown on clicking a link

I have a link which says "add another field". On clicking the link a dropdown should appear on top with let's say 5 custom fields as list in dropdown. Once user selects a field in that dropdown and clicks hyperlink another dropdown should appear below existing dropdown and with only 4 remaining fields as one is already selected.so how to start this?
https://tutorialslink.com/Articles/How-to-add-control-dynamically-in-Aspnet-MVC-using-Javascript/64 . I have tried to use this link which adds text boxes to get started.
I don't have any code expect for the code in above link which is for text box though. Just need an idea of how to do it in asp.net MvC as i cannot move forward now.
Expected results is to do the above requirement, don't have any actual results as of now

Google sheets - on clicking a tab/sheet trigger a action

In Google sheets, I have multiple sheets/tab in one spreadsheet file. I want to trigger a action when I switch from one tab to another i.e. when I click on the tab name / sheet name. Is this possible?
I'm looking for the same solution. The only answer I've come up with is to hide all sheets but one and force the user to click a button to select a sheet to be unhidden, afterwhich the current sheet is hidden.

Google Sheet button updates increases button textbox value

I'm pretty good at VBA but transitioning to Google Sheet scripting is killing me:
I have a drawing shape, with a textbox named
(by the end product there will be 6 text boxes, with identical actions)
I want to have a script which makes it so when I click the text box, the value increases by one.
I also have a reset textbox, which says reset, and when clicked, will set all 6 other textbox values to zero.
In excel, I had the following: subs for each shape which increased the textframe + 1, and a reset sub, but none of that language works in Google.
Please help.
I have also used VBA. Google currently has no equivalent to textframe. It has been requested. There are a number of like things you can try. The link below has a few examples. The first sheet (menu) has a menu named testing. It has four options. On open they will show multiple options. There are three named Button1, Button2, and Button3. Each shows a count. The count is set to 0 on open. If Button1 is clicked, A1 will be 1 and the testing menu will change to Button1 count=1. Clicking Button2 will change A2 to one and the testing menu will now show Botton1 count=1, Button2 count=1, Button3 count=0. The menu option Clear counts sets all button counts back to 0. Actually, the menu is replaced each time. The buttons tab has buttons that increase cell counts in total or separately.The button text does not change. I hope this gives you some ideas.
https://docs.google.com/spreadsheets/d/1ysr90k38hir-Kz8HTRY-vw6e7KFGJJWnNwlt2azzopk/edit?usp=sharing

Is there a way to create a tabbed picker in iOS? Or somehow combine numpad + picker inputs?

I'm looking for a clean way to enable two interactions within one screen.
For example:
1) User clicks on "Add Activity" button
2) User enters a number of standard units (e.g., 10 meters), and then picks an associated activity from a list (e.g., picklist of: jog, run, walk, crawl)
All I can think of right now is creating two separate entry fields - one that calls up numpad, and another that calls up the picker. Is it possible to created a tabbed numpad so that the user completes numerical entry, then just hits 'Activity Type' above the numpad and the element switches to a picker?
Appreciate any inputs!
Not with a stock keyboard. If all you need is a numpad, you ought to be able to implement a very reasonable keyboard out of a few buttons. Add a couple of "tab" buttons, and show/hide the appropriate view: keyboard or picker.

Resources