Forum Post: RE: Related objects on default Rollbase mobile

  • Thread starter Thread starter Orchid Corpin
  • Start date Start date
Status
Not open for further replies.
O

Orchid Corpin

Guest
I see, try to put your code inside a jquery document.ready, this code will execute after the page has loaded all components. script $(document).ready(function() { var sectionId; if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { sectionId = rbf_getSectionIdByTitle("Desktop Section"); rbf_showOrHideSection(sectionId, false); console.log('You are using a mobile device!'); } else { sectionId = rbf_getSectionIdByTitle("Customer Notes"); rbf_showOrHideSection(sectionId, false); console.log('You are NOT using a mobile device!'); } }); /script Hope this may help. Regards, Orchid

Continue reading...
 
Status
Not open for further replies.
Back
Top