How would I copy and paste a cell based on xlookup - google-apps-script

I'm super new to coding even though I've been really fascinated with Excel, and anything related to data analysis. To learn, I've been taking projects that I'd like and apply coding to it. I've been stumped on a possibly simple deal.
I'm trying to create a macro that would copy from a checkbox into a cell that matches another cell. I'm not sure how to explain it better without showing, so I'll add the sheet link in here.
The plan is for people to be able to hit the checkbox, and the button Draft Player would trigger where it would look for True in that range, then paste it on the Set Up!C2:C34 that matches Set Up!A2:A34 with Set Up!F3.
What would the correct code look like to accomplish something like that?
I've experimented with recording the macro and digging into the code, then googled all day about this, I'm still stuck.

Related

Is there a way to filter numbers in a html page?

it's for work so i can't disclose details, but basicly orders come in and they get listed via a external website. the thing i want to do is to list them so i can copy them easily. i've been searching for a way to export the page to excel, but this didn't work out. now i'm looking into devtools for chrome to filter them out.
what i'm looking for is a way to filter a bunch of numbers from a page, and quickly be able to copy them. it doesn't really matter how. below i added a picture to show the overall scructure of the page itself.
All suggestions are welcome!
greetings, niels
Yes you can with Javascript.
However, the image you provided does not contain the necessary information to help solve your exact question.
Get the element that contains the value that you want to receive via element inspect in your browser.
Use .innerText to retrieve the value inside of the element.
For example, let's say I want to fetch your Stackoverflow username from this post, here's how that would go (you can copy paste the code in your web-console to see the result):
document.getElementsByClassName('user-details')[0].childNodes[2].innerText
The same principle applies to numbers or other values/data. Without the page structure, it is impossible to give you a concrete answer to your question. Hopefully the above gives you some guidance as to what you should be looking for.

Changing the title on a Microsoft Access based form

I've been playing with an order tracking system which was created by one of an ex-employee. Well, nothing major but just a simplified system. I manage to find most of the things re-linking to new database, editing layout... etc. However, what I am struggling to understand is as seen below;
As seen on the image test 1 is the actual access file I have copied and made most of the changes to reflect test 2. However, as circled in red above (where test 1 is shown), is what I'm trying to find and edit. I'm not sure whether I'm searching correct terms but it seems I couldn't find any relative queries to fix this issue. Any advise will be a great help!
File->Options->Current Database->Application Title

Expandable table interactive pdf

I have a task to complete at work that I already completed once. The issue is Outlook and HTML templates. I created a large table that will be used as a pricing table for our customers but the issue is people don't know how to use html even when I dummy proof it with step by step instructions. I have attached the exact layout I need to produce to get some help with advice on what solution will be best for me to use. I have proposed the LiveCycle Designer by Adobe but I feel I am getting a snobby response from even suggesting this. PLEASE HELP! I have don't this 4 times using Acrobat Pro and the client hates it. I also redid it as an HTML template with Outlook specific code so it doesn't get mangled if it is forwarded to others.
Ok I need a reputation of 10 to post a picture so I will describe it the best I can. Let me know if I can send the image to anyone willing to help?
The table has an image header then Title and report date with a input text field next to it. Under this begins the table is has 12 columns and 29 rows. Each cell needs to be expandable in case the clients types in more characters and the form expands to show all the text in each cell. I would like everything to adjust to this.
I told them to use a Excel document but they said no. Then I suggested to just have each cell be larger so there is no need to have them be expandable. They shot that down as well due to the look of it. I really don't think I can pull this off without Adobe's Livecycle Designer.

Add additional and existing script to a Google form

I am currently building a Google form to help gauge a competency of our staff members. While building the Google forms you’re given several options when creating your question type, 9 to be exact. (text, paragraph text, multiple-choice, checkboxes, choose from a list, scale, grid, date and time I’m a definite novice when it comes to scripting with a simple understanding of different coding languages which helps me sift through the scripts so please bear with me.
So here’s my question, how would I add a paragraph text to the existing multiple-choice script in the Google form and is it possible?
Here’s a quick test question example we would like to apply to current Google form script:
Question: Do you have experience in handling cash?
Multiple-choice question: Yes or no? (Please explain your answer) <--- this is where I would like to add a script that would allow me to also include a paragraph text just below the multiple question.
I know I can organically create the entire test by adding landing pages as an option after choices made but this means creating a new page for every single question throughout the test with my 40 questions this means building 40 questions with 40 page landings would sound like a massive pain in the ass.
This may be an easy question for somebody out there but I’m sure it’s not going to be for most as I believe Google locks down the default scripting in new forms. My only hope is that the existing Google form that I create essentially belongs to us so re-scripting to add a paragraph text box may not be that big of a deal after all.
Per this discussion, there is currently no way to modify the action of Google Forms controls:
Google FormApp Customisation
If you have the time to get to grips with the UiApp, then you should probably do so, since (as you have discovered) Google Forms are extremely limited in terms of what can be achieved with them.
Additionally, Google handles the data transactions via a background service which makes any adjustments post-contruction liable to cause significant problems with your process. For example, adding a new control 1/2 way down your form will insert a new column at the end of the responses spreadsheet, and attempting to move that will create a 'ghost' column which can't be removed. Similar issues will be encountered with removing rows etc.
If the system you are working on is anything more than trivial, Google Forms are not the way to go. But if you feel it can do what you need, then Bryan P's comment from yesterday is probably the way to go :)

How to create a selection range in a form?

I'm using expressionengine and safecraker to create a web form for a scheduling app that allows the user to select their desired shift time (ex: 6am to 8pm). I would like the form to know the start and end, and check all the boxes in between to fill in the range.
I was going to put a bunch of if statements to change the checkbox status, but this seems clunky. Is there a jquery tool anyone knows about to do this? Or what is the best approach, I can't seem to find any info on creating this.
I'd also like to have the form update, but not be submitted.
Thanks!
*update
I don't have any code for an example, because I'm still in the research phase. I'm not sure where to begin other then show the whole timeline for the day, and each day being a checkbox (I'll add css to look better of course). To give an example I would like it to work like travel sites. When you pick your outbound flight and return flight it would highlight all the days in between.
*Solution
In addition to Trym's example I found an example of how to impliment it HERE I think I was too stuck on it having to be incorporated with a calendar.
Checkboxes is not the way to go for range. Try something like this. I think it would be a much smoother experience for users, as well as writing. There's an really elaborate API and source for every example. I'm sure you'll figure it out, but I would recommend stepping away from the checkboxes.
T.