Announcement

Collapse
No announcement yet.

Mobile Form Example

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mobile Form Example

    Hi All,

    At http://www.scriptcase.net/scriptcase...m/form-mobile/ shows the mobile form example.

    When I accessed it with SAMSUNG GALAXY 10", it displayed as web form.

    Tested with iPhone 6 Plus, it displayed correctly.

    Is it possible to force the form into mobile app instead when accessed with SAMSUNG GALAXY 10"?


    Thanks.

    Kelvin Chua
    SINGAPORE
    Last edited by KelvinChua; 08-09-2015, 02:42 PM.

  • #2
    The tablet apparently is seen as a desktop computer by SC. It's my experience too with a Nexus 7 tablet. No matter what the Request Desktop site setting in the Chrome or Firefox browser.

    There is a function sc_menu_force_mobile(true/false), but that only works in the OnLoad of a Menu-application.
    Last edited by scriptfan; 08-18-2015, 09:30 AM.

    Comment


    • #3
      Hi Kelvin,

      Try:

      $_SESSION['scriptcase']['display_mobile'] = false; // force desktop mode

      or

      $_SESSION['scriptcase']['display_mobile'] = true; // force mobile mode

      in your form event OnApplicationInit.

      DH

      Comment


      • #4
        Hi everybody,

        you need to use :

        $_SESSION['scriptcase']['display_mobile'] = true; // force mobile mode
        $_SESSION['scriptcase']['device_mobile'] = true; // force mobile mode

        but seems working only for control and form apps, doesn't works form grid apps. There is already Mobile setting for grid apps but it doesn't recognize tablet

        How can we force mobile mode for grid apps on tablet ( i tried with nexus 7, lenovopad) ??
        Thanks
        Last edited by nacyil; 12-03-2015, 08:14 AM.

        Comment


        • #5
          Moderation: Offtopic
          Last edited by Giu; 02-06-2016, 05:14 AM.

          Comment


          • #6
            yes i agree dear you $_SESSION['scriptcase']['device_mobile'] = true; // force mobile mode


            webs services
            Last edited by Roma Rose; 06-10-2016, 03:33 AM.

            Comment

            Working...
            X