“Undefined” “#NAME?” Coding - google-apps-script

I was making a Google sheets and need to use apps script to make Google write down the numbers in words.
Everything is fine except for the fact that before that amount in letters keeps showing “undefined” or “#NAME?”
I checked the code but is seems fine.
Please help, I could not find what is wrong with it.
enter image description here

Related

Why do my Google Sheet custom functions require this weird workaround?

I’m creating custom functions in Google Sheets using their google apps script language. I’ve done my development on a laptop and it seems to work correctly.
However, when I open the sheet on my mobile device (iOS), the cell output for my custom functions get stuck at “Loading…” forever and never load. But I discovered this weird workaround, but I don’t know why it works or if there’s a better way: if I make a small, trivial change to one of the input cells, then close the sheet and reopen, the sheet will be correctly updated.
Note that if I just make a change to a cell, or add/delete a column etc, without closing and reopening, to force an update, it will still get stuck at “Loading…”.
Also note that if I close and reopen the sheet without making any change, it will still get stuck.
Any ideas of what’s going on here, and if there’s a better way to get my custom functions to correctly update without timing out?
I searched online for solutions, couldn’t find anything.
Update: Example sheet located at this link:
https://docs.google.com/spreadsheets/d/12nm9EwuzqaN0jYUv75CquMhrcUGlVsmEPFoWd92yuWo/edit
Look at the “SeasonTest” tab, cell AS5. On a mobile device it always shows “Loading…” (unless the above workaround is used), but works fine on a desktop

Google Apps Script doesn't show the methods when coding

Firstly, let me say that I am Spanish so my English is not so good, so please be patient if you find it difficult to understand what I am to say.
Having said that, the problem I have when using Google Apps Script is that the kind of window that is being opened when coding isn't work.
For instance: If I type.... var doc = documentapp. nothing happens, that is, the kind of windows that shows the different methods doesn't even try to open, nothing happens
To help you understand the problem I have, I attached a picture with "what should happen" when coding...
I am in despair.. I don't know what is happening.
If you see the picture, when docfile. is typed a windows is open with different methods, like GetEditors and so on..
Well, that the problem I have, that doesn't happen to me when typing code.
Google Apps Script doesn't show the methods when coding
This is an auxiliary feature indicating you that something is not correct in your code
In your particular case: You misspelled DocumentApp (case sensitivity is important in Apps Script, so documentapp is wrong)
After you fix the typing mistake, the methods will be shown correctly after the . - unless you have some other mistake somewhere else in your code

Pasting data in multiple text boxes

So I have a zero-reporting data entry task which I do monthly. For a couple of cells, I have to enter zero manually (as shown in the image), which is very much frustrating.
Is there any web add-on I could use to paste zero in multiple cells at once?
Browsers only select text.
No way to select input-boxes (at least not yet).
I know what you are thinking.. Excel! Or Spreadsheets.
So.. unless the web-application you use, is rewritten to "mimic" spreadsheets (just like Google Sheets runs within the browser 100%)..
.. can't give you any hope.

GoogleAppsScript - customfunction completion works randomly

For a few days I've tried to understand why the auto-completion (in the sheet) is working for my customfunction in one Google Sheet and not in another one.
I even copied/pasted the code in the 2nd .gs but no in the second Spreadsheet I can only see original built-in functions.
I did put the #customfunction in my JSdoc of course.
You can see my 2 screenshots.
I've tried a lot of things around casing and spaces and checked every differences between the 2 sheets.
There is none. I'm out of ideas. Please help me figure it out!
Please note that the function workfs perfectly if I enter the formula manually 'till the end.

How to edit choices with images in Google Script Editor?

I've got a Google Form which is attached to a spreadsheet and a script. It's got one radio button field. When a choice is made, I want to run the script to remove the choice from the list. So far so good - I've got this working well.
However, when I use images with the choices, the script removes all of the images. Is there a way of not deleting the images? Or at least a way of accessing the images associaed with a Choice to get me started?