AlbertoTablada
4 years agoQrew Member
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.
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
------------------------------
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
------------------------------