Forum Discussion
MikeKlausing
6 years agoQrew Assistant Captain
I'm probably mistaking what to do here, but the article I was following said custombuttonscript1 contains: <a href='javascript:($.getScript("https://xxxx.quickbase.com/db/yyyyyyyy?a=dbpage&pagename=
where the url is your apps home page.
where the url is your apps home page.
- AustinK6 years agoQrew CommanderYes but the portion they are talking about is the yyyyyyyyyyyyy section of the url. It just means it needs to be your apps home page dbid because that is where the pages are stored. When you go to the base page of your app copy that dbid into the spot where it shows the yyyyyyyyyy and leave the rest of the URL on the end the same. Only edit the yyyyyyyyyyyy.
This should just work unless I misspell something.
<a href='javascript:($.getScript("https://elginservicecenterinc.quickbase.com/db/bpgjc56je?a=dbpage&pagename= - MikeKlausing6 years agoQrew Assistant CaptainI changed that part to: <a href='javascript:($.getScript("https://xxxx.quickbase.com/db/bpgjc56je?a=dbpage&pagename= where I only edited the YYYYYYYY to my dbid. The button still does nothing though.
- MikeKlausing6 years agoQrew Assistant CaptainSorry- I did change the XXXX part as well. I have <a href='javascript:($.getScript("https://elginservicecenterinc.quickbase.com/db/bpgjc56je?a=dbpage&pagename=
- AustinK6 years agoQrew CommanderYou saved your SaveAndNextTab.js as a code page specifically right?
Are you getting any errors in the console? In chrome you can hit f12 to bring up the dev resources. Are you maybe getting an error about DoSaveAndNext() being undefined? Looking at your button you have a part in there that says "onclick='DoSaveAndNext()' " but I don't actually see that on the tutorial you linked. Sorry if I'm missing it. Do you have the save and keep working button enabled in form properties as well?
You have also added some additional things onto the end of the javascript they provided. I would try and get it working with their exact example and then after that you can try and change it up.
Something I forgot to ask, are you using the code from the first reply or replies down below it? - MikeKlausing6 years agoQrew Assistant CaptainYes those things seemed to help. Thank you!
- GiuseppeMacri6 years agoQrew CaptainHi,
This code no longer works as of 11/5/19. Not sure how to update it. Got any thoughts?
------------------------------
GMacri
------------------------------- AustinK6 years agoQrew CommanderCan you describe what is not working? Are you on mobile or desktop?