Is it possible to run custom scripts on the "mobile site" version?

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

There are a couple topics about blocking access to the mobile site on this forum. However none of them seem to offer any good solution with native QuickBase, and they are old posts.

What we ultimately need is to enforce some custom logic onto the users. We already do that on the "full site" version, and it works well (same as on the computer). However, when users go on to use their mobiles, the "mobile site" disables our scripts altogether.

Since native QuickBase will not allow us to block the mobile site, is there a way to still run scripts on the mobile site? Something like the "image-on-load-for-mobiles"?

We think being able to run at least one script (e.g. on the dashboard), would allow us to redirect the users to the full site, as well as remove the links to go back to the mobile site. Anybody has experience/suggestions on how to do that? 

Photo of Rick

Rick

  • 40 Points

Posted 3 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,064 Points 20k badge 2x thumb
See this pastie and links within:

How To Get IOL Working on Mobile?
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=397
Photo of Rick

Rick

  • 40 Points
Thanks Dan! Ok. I just saw the pastie has another link inside, where you say the iol variables are different. Let me try that!
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,064 Points 20k badge 2x thumb
On the mobile version of QuickBase a global variable that the IOL script uses is not present. The IOLM version has some type of workaround. Neither QuickBase nor your device is blocking JavaScript from running - this missing global is just causing JavaScript to throw an error and silently abandon running the script. On  a tablet so can't say more now.
Photo of Rick

Rick

  • 40 Points
Thanks Dan! Your solution works!