Forum Discussion

AlbertoTablada's avatar
AlbertoTablada
Qrew Member
4 years ago

Scroll Down Automatically on Mobile Form

Hello Quickbase Community.

Is there a way to get a Quickbase mobile form scroll automatically to a specific place after having reloaded the page?

We have a very long form, which will be used from Android phones, the form contains questions which will be answered with two different buttons each, as the user answers the questions they will have to keep scrolling down and answering.

I need a way to make Quickbase scroll down to wherever the user was before pressing one of the buttons, so that he doesn't have to manually scroll after each answer.

I tried using fragment identifier, by adding for example "#tdf_362" at the end of the redirect URL (see 2nd screenshot), which worked nicely for the desktop view, but didn't work for the mobile view.

The buttons update a checkbox field in the background and then reload the page on edit mode, here's the code of one of those buttons.
URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=xxxxxxxxxxxxxxxxxxx" &
"&_fid_206=1"&
"&rdr=" &URLEncode(URLRoot() & "db/" & Dbid() &"?a=er&rid=" & [Record ID#])

Here's a screenshot of the form in mobile view:

Here's second screenshot which shows error when trying to use the fragment identifier:


Just in case this is useful, the error I'm getting in console says:
qb.mobile.js:1 Uncaught TypeError: Cannot read property 'is' of undefined
at Object.isPageLoaded (qb.mobile.js:1)
at qb.mobile.js:1
at Object.execCb (require.js:29)
at $.check (require.js:18)
at $.<anonymous> (require.js:23)
at require.js:8
at require.js:23
at z (require.js:7)
at $.emit (require.js:23)
at $.check (require.js:19)


Thank You for taking the time for reading this post, any thoughts and ideas are appreciated!

------------------------------
Alberto Tablada
BlueWell Group
------------------------------
  • Alberto,

    I am battling the same issue.  Did you ever resolve this?



    ------------------------------
    Don Larson
    ------------------------------
    • MarkShnier__You's avatar
      MarkShnier__You
      Icon for Qrew Legend rankQrew Legend

      On Desktop if you make a Rich text formula field like this

      Create this field on the form as the jump target
      "<a name=DealerClaim></a>"

      The suffix the URL with #DealerClaim

      e.g. urlroot () etc .. "?a=dr&rid=" & [record ID#] & "#DealerClaim"

      Then when the page loads it will go to about where the anchor tag is.  You can try that in mobile mode and then I'm not sure how the user are navigating to that page, but maybe you can use that URL syntax.

      The other option is to make a button to jump to a spot on the form.  I know how to do that using Javascript but that is blocked.  Maybe someone know how to make a code page to jump to an anchor tag spot on the form.  The idea is that at the top of the form there would be these shortcut anchor tags.



      ------------------------------
      Mark Shnier (Your Quickbase Coach)
      mark.shnier@gmail.com
      ------------------------------
    • MikeTamoush's avatar
      MikeTamoush
      Qrew Commander

      Don,

      I have long sought a solution for this with no luck. However, I do know someone know who is great with code pages. Maybe he can work up a solution. We would need to pay him, but could be worth while!



      ------------------------------
      Mike Tamoush
      ------------------------------
      • DonLarson's avatar
        DonLarson
        Qrew Elite

        Mike,

        A Code Page that dynamically knows where you were on the form would be valuable.   Lets discuss on Monday.



        ------------------------------
        Don Larson
        ------------------------------