Discussions

Expand all | Collapse all

Branding On Load - no longer functional?

  • 1.  Branding On Load - no longer functional?

    Posted 01-13-2020 16:44
    We've utilized this technique for multiple projects and it no longer functions.  Anyone come up with a creative workaround for this yet?  Or is this something being discouraged from using? 

    Thanks!

    ------------------------------
    Christine Suarez
    ------------------------------


  • 2.  RE: Branding On Load - no longer functional?

    Posted 01-13-2020 17:02
    All things like BOL and IOL are very much discouraged from being used by QuickBase themselves. They do not support those things so it is a "use at your own risk" kind of thing where they might make a change that breaks it forever at any time. Chances are it won't just break and stop working but it could happen.

    Do you get any errors in console at all?

    Looking at the original BOL post there was a post from the end of 2019 that said they had an issue using it without grabbing it straight form the pastie. Once they grabbed it at the link below it worked for them. Can you give that a try and get back to me?

    https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=582





  • 3.  RE: Branding On Load - no longer functional?

    Posted 01-15-2020 20:06
    Hi!

    I'm also facing the same issue.
    I had some Javascript running on an app for a few months.

    Now, the Javascript is not being triggered at all.
    It looks like QBase is overwriting the "TextColor" field to be Black, rather than white followed by the js injection.

    Let me know if anyone finds a workaround, please!
    I will continue looking into this.

    ------------------------------
    Raul Gonzalez
    ------------------------------



  • 4.  RE: Branding On Load - no longer functional?

     
    Posted 01-16-2020 11:32
    I've found the most effective method for custom script deployment is using Service Workers. This is a more advanced method that requires a higher level of Javascript knowledge, but in my opinion is the best way to deploy custom code to QuickBase.

    Basically what you have to do is:
    - Create a register.html page, a service-worker.js service worker script page, and whatever custom code you need as another script page
    - On the register.html page, add a script block to that page that registers the service-worker.js script page
    - In the service-worker.js script, add event listeners that intercept requests that you want your custom script to run on. When you intercept those requests, add a <script> element to the body of the response that points to your custom-script.js page, and then return it.

    Now when the user first opens your QuickBase application, the Service Worker will be registered. Once its registered, every time they navigate to a page in QuickBase your custom script will be added.

    Like I said, this requires a lot more setup and developer understanding that IOL or BOL methods, but there are some big benefits as well.

    You can check out this thread for more details:
    https://community.quickbase.com/communities/community-home/digestviewer/viewthread?MessageKey=17d06df5-b986-4a4e-8aee-9ce9fb92332b


    ------------------------------
    Sam C
    ------------------------------



  • 5.  RE: Branding On Load - no longer functional?

    Posted 01-17-2020 20:19
    Thanks for this!
    I found these resources very helpful.

    ------------------------------
    Raul Gonzalez
    ------------------------------



  • 6.  RE: Branding On Load - no longer functional?

    Posted 01-16-2020 14:51
    Edited by Evan Martinez 01-16-2020 15:15
    Hi Christine,

    As Austin was mentioning we are working right now to be very clear to all our builders that BOL and IOL based solutions are not something that we support. The most important reason to know that is that as we continue to focus on making the platform even better that means things previous built using BOL and IOL can and most likely will break over time. We love seeing the innovation that a lot of our builders bring to the platform and we appreciate the drive they have to make change happen in Quick Base but the original ability to use BOL and IOL stems from a bug that we do need to eventually close. The fact it can be done right now is a security concern and being trusted is a main principal for us. Builders relying on these techniques will result in instability so we want to make sure everyone is informed so they don't pour that effort into a fix that could not last.

    We also want to make sure everyone knows that our product development team is laser focused on extensibility as a principal with our new UI work. To help give some clarity on options available to our builders and developers we do now have an Extending QB doc in our Help that can be a great place to start and that we will be keeping up to date as we continue to develop these practices. 


    ------------------------------
    Evan Martinez
    Community Marketing Manager
    Quick Base
    ------------------------------



  • 7.  RE: Branding On Load - no longer functional?

    Posted 01-23-2020 11:51
    Thank you for the detailed response, Evan!  Looking forward to the new updates.

    ------------------------------
    Christine Suarez
    ------------------------------