Forum Discussion

PrashantMaheshw's avatar
PrashantMaheshw
Qrew Captain
5 years ago

IOL to change embedded table font size on Forms

I've managed to get the IOL technique up and running. Could someone guide me advise/or paid on how can I increase the FONT size of my embedded table. 



------------------------------
Prashant Maheshwari
------------------------------
  • Here's one way to do it:

    Create a code page (pageName.js)  with this code: $('.searchResults td').css("font-size", "14px");

    Change the font size to the ideal size for your reports. Using .searchResults (the class of all reports, embedded or full) is best if you want to apply it to multiple tables. Otherwise, find the table ID of the specific table in the inspector.

    Then reference the page in a rich text field using the iol technique: [iol] & "pageName.js" & [/iol]

    Add that field to the reports you want to apply the code to.



    ------------------------------
    A Brown
    ------------------------------
    • PrashantMaheshw's avatar
      PrashantMaheshw
      Qrew Captain

      Hi A Brown,

      Thanks for the reply. I've created code & css page as you advised. I still see no changes.
      The IOL technique is perfect as I'm able to see other changes. 



      ------------------------------
      Prashant Maheshwari
      ------------------------------
      • AhuvaBrown's avatar
        AhuvaBrown
        Qrew Cadet

        It's possible that you're using the wrong table ID- you might want to verify that in the inspector. Did you add the iol field to the tables?



        ------------------------------
        A Brown
        ------------------------------
  • The IOL technique is not a supported function and I would caution you against relying on this. Quick Base makes very regular updates to their UI and you never know how these changes will impact this function - or other JS functions, for that matter.



    ------------------------------
    Blake Harrison
    bharrison@datablender.io
    DataBlender - Quick Base Solution Provider
    Atlanta GA
    404.800.1702 / http://datablender.io/
    ------------------------------