Forum Discussion
- GauravSharma3Qrew CommanderHi there,
You can go to the App settings then, click on the new button above the Pages link and select the code page option.
Give the name <YourPageName>.js
Please let me know if you have further questions.
Thanks,
Gaurav- RobertScaliseQrew CadetGaurav,
I'm having trouble referencing <YourPageName>.js in my HTML code page.
If the pageid of <YourPageName>.js is 48, is this syntax correct?
<link href="https://mydomain.quickbase.com/db/mydbid?a=dbpage&pageID=48">; - GauravSharma3Qrew CommanderHi Robert,
Just to let you know that we use link tag to reference the CSS files and for javascript, we use script tag.
Here are the examples.
For CSS:<link rel="stylesheet" href="https://yourdomain.quickbase.com/db/bnnp8ryeg?a=dbpage&pageID=70">
For JavaScript:<script src="https://yourdomain.quickbase.com/db/bnnp8ryeg?a=dbpage&pageID=71"></script>
You can actually use the page name as well.https://yourdomain.quickbase.com/db/bnnp8ryeg?a=dbpage&pageName=main.css
https://yourdomain.quickbase.com/db/bnnp8ryeg?a=dbpage&pageName=modal.js
_I would suggest you to always use ID because if someone changes the name later then, no need to change the name in your code as you have referenced the ID not name. :)
Please let me know if need any further information.
Thanks,
Gaurav - RobertScaliseQrew CadetThank You Gaurav.
- IntuitQuickBaseQrew Memberi have one more doubt how to handle table fields with java script
- MCFNeilQrew CaptainEverything within QB is handled with field IDs (fid). You will need to pay attention to field types and acceptable formats.
I'd familiarize yourself with the API and structure to have a better idea of requirements.
https://help.quickbase.com/api-guide/index.html