- 4

Text color has change(red) perfectly when I open the app at first time. But it'll not work after running the app. Solution?

https://code.sololearn.com/WR5374MAXMn8/?ref=app

8th Sep 2020, 6:51 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar
25 Respuestas
+ 3
ASHRAFUL HAQUE Wait... What? How are you using Google Sheet as the PHP page? TBH... I'm a bit confused about whether or not you understand, much less, wrote the code implementing the Google Apps Script API or if you grabbed parts of it from somewhere else and you're trying to figure it out. This code does look like it was pulled from some other code base written by someone who understands the Google Apps Script API. It's just unclear if you were that person based on your responses so far and the code I've reviewed. To cut to the chase, did you write this code or grab this from some other source? Have you ever gotten this code working? If so... what happened to the scripts for initializing the Google Apps Script API?
9th Sep 2020, 5:38 AM
David Carroll
David Carroll - avatar
+ 2
ASHRAFUL HAQUE Sorry for the late reply. It's been a busy day. I just pulled your project and have a few comments to kick this off. 1. https://github.com/Ashraful7679/user-form/blob/master/main.html#L82 This appears to be some left over from a PHP page. You need to initialize this value in another way. It's breaking your Javascript. 2. Your references to the google object are undefined. Perhaps you're missing a library you meant to include. Without having that implemented, there's not much that's going to work.
9th Sep 2020, 4:20 AM
David Carroll
David Carroll - avatar
+ 1
ASHRAFUL HAQUE I can try to make time tomorrow to review from my machine. It's 3:41am EDT at the moment. 😉😴
8th Sep 2020, 7:43 AM
David Carroll
David Carroll - avatar
0
David Carroll this is the google sheet I'm using for the reference and as the php page.
9th Sep 2020, 5:08 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar
0
I'm using this code as a script file in the google sheet. You can find the script editor in the Tools>Script editor section.
9th Sep 2020, 5:39 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar
- 1
Please verify your code, there are missing pieces there which prevents the code to run and be analysed.
8th Sep 2020, 7:11 AM
Ipang
- 1
Big Thanks David Carroll 🙏
8th Sep 2020, 7:46 AM
Ipang
8th Sep 2020, 7:13 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar
- 2
Please check the github url for full code
8th Sep 2020, 7:14 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar
- 2
I have another issue with this userform. I want to disable the add-customer-button when the initial value <=0
8th Sep 2020, 7:16 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar
- 2
Please first tell me which file, you have 7 files there bro. Tell me where to begin?
8th Sep 2020, 7:20 AM
Ipang
- 2
Main.html
8th Sep 2020, 7:21 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar
- 2
This is the google sheet you can input data using the code
8th Sep 2020, 7:24 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar
- 2
I'm not sure, but looking at your main.html, I think you need to verify variable <initVal> value is evaluable as number when it is checked at line 83. That is the part that changes colours right bro?
8th Sep 2020, 7:31 AM
Ipang
- 2
Let me give you the access to edit the code and check if it is okay or not.
8th Sep 2020, 7:35 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar
- 2
Okay No problem. please help me when you are on pc
8th Sep 2020, 7:37 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar
- 3
You can open the userForm following the 'custom manu'
8th Sep 2020, 7:26 AM
ASHRAFUL HAQUE SULAIMAN
ASHRAFUL HAQUE SULAIMAN - avatar