Discussions

Expand all | Collapse all

Regarding changes to Javascript in Quickbase

  • 1.  Regarding changes to Javascript in Quickbase

    Posted 08-18-2021 08:47
      |   view attached

    Hi Everyone,

    I am facing issue in injecting my custom code page. By reading  all the docs, I came across that in order to inject your custom code you have to  make a field and insert your custom page as follows : ""&[iol] & "Formula_Save_Proposal.js" & [/iol]&"".

    Earlier it was working fine and was getting saved , but now when i am trying to save this field it is giving  error as shown in image attached for your reference.Could you please help me to find a solution for same.



    ------------------------------
    Adis Kljajic
    ------------------------------


  • 2.  RE: Regarding changes to Javascript in Quickbase

    Posted 08-18-2021 08:59
    I don't have a solution for you but as of August 15th you are no longer permitted to use javascript in formula fields.  If you understand "code pages", then  you can use those.  There may be others on this forum who can direct you to resources for alternatives, but here is a good blog entry by Evan, the Community Forum Moderator.

    https://community.quickbase.com/blogs/evan-martinez1/2021/07/09/alternatives-to-common-javascript-insertion-techni

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 3.  RE: Regarding changes to Javascript in Quickbase

    Posted 08-18-2021 10:44
    IOL is dead in the way it was written but look into the service worker solution by the same person. That can pretty much not be killed ever from what I understand and is more powerful. If you have a need for JavaScript then this is one option. Code pages might work but they will not give you the same functionality that has been lost where you could run the code on the page you were looking at.


  • 4.  RE: Regarding changes to Javascript in Quickbase

    Posted 08-19-2021 07:44
    Hi, Thanks for the reply but my issue is i am not able to get after making code pages where to use those code pages so that they can be used in the forms.

    ------------------------------
    Adis Kljajic
    ------------------------------



  • 5.  RE: Regarding changes to Javascript in Quickbase

    Posted 08-19-2021 11:16
    Edited by Austin K 08-19-2021 11:16
    You cannot do that as far as I know. Code pages are the solution that is meant to split JavaScript from the form and app and keep it in one location, the code page. If you want to use code pages instead of service workers(which would do what you want I think as they run on the browser) then you will need to send the user to the code page via the URL for it, do your JavaScript manipulation there, and send the data to the record you want and then send the user to that record afterwards if that is the goal.

    https://community.quickbase.com/blogs/graham-leto2/2021/03/02/code-page-samples?CommunityKey=d860b0f8-6a48-487b-b346-44c47a19a804