Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Form problem on mobile

Form problem on mobile

Scheduled Pinned Locked Moved Bug Reports
13 Posts 2 Posters 2.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    J
    joackim
    wrote on last edited by
    #4

    Did you have a look?

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by
      #5

      when i dont enter anything:
      Screenshot 2024-11-16 at 18.35.47.png

      when i enter my name and email and click subscribe:
      Screenshot 2024-11-16 at 18.36.04.png

      can you go to lay options → enable "disable ajax / compatibility mode"

      maybe that fixes it?

      1 Reply Last reply
      0
      • arminunruhA
        arminunruhA
        arminunruh
        Global Moderator
        wrote on last edited by
        #6

        and u did a really amazing job with this website!

        1 Reply Last reply
        0
        • J
          J
          joackim
          wrote on last edited by
          #7

          It works on desktop but not on mobile... Did you try on mobile too?

          Thank you for your comment.... I really like your theme... We can do great websites.

          1 Reply Last reply
          0
          • J
            J
            joackim
            wrote on last edited by
            #8

            I tried with and without "disable ajax / compatibility mode".
            Nothing changes. 😅

            1 Reply Last reply
            0
            • arminunruhA
              arminunruhA
              arminunruh
              Global Moderator
              wrote on last edited by
              #9

              i see.

              i think the issue is the contact form plugin cant handle the same contact form being in the page twice.

              because you have a custom phone layout, you basically have the code for the contact form on your page two times. one time in the phone layout code, one time in the desktop layout code.

              thats my guess.
              maybe you can create a new contact form and insert that one into the phone layout?
              and remove the one you already have in the custom phone layout, but without removing it from the desktop layout.

              you could also try and disable the custom phone layout feature in lay options.
              just to test for a few minutes if my assumption is right.

              if you'd disable the custom phone layout feature, you'd not have the code for the contact form twice, so probably it would work on mobile then too.

              1 Reply Last reply
              0
              • J
                J
                joackim
                wrote on last edited by
                #10

                You're right, that's the problem. When i remove the phone layout, it works.
                Thank you very much...

                is there a way to detect the device to only load the form one time?

                1 Reply Last reply
                0
                • J
                  J
                  joackim
                  wrote on last edited by
                  #11

                  with my design, it's impossible to do without the custom phone layout.

                  1 Reply Last reply
                  0
                  • arminunruhA
                    arminunruhA
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #12

                    i dont know what javascript you used to initiate the contact form.
                    if you coded it yourself, you can test if the html has a class "phone-size"
                    Screenshot 2024-12-09 at 17.59.39.png

                    and then target the contact form in the div:
                    Screenshot 2024-12-09 at 18.00.45.png

                    #custom-phone-layout

                    instead, you can also test for:

                    window.laytheme.on('newpageshown', function(){
                    if( jQuery('#custom-phone-grid').is(':visible') ){
                    
                    var myform = jQuery('#custom-phone-grid').find('.mycoolcontacform');
                    //initiate your form
                    }
                    })
                    
                    
                    1 Reply Last reply
                    0
                    • arminunruhA
                      arminunruhA
                      arminunruh
                      Global Moderator
                      wrote on last edited by
                      #13

                      if u used a plugin to create a form, you can try to create two different forms.
                      insert contact form 1 into desktop layout, and contact form 2 into custom phone layout

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      Online Users
                      R
                      robertobarbes
                      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                      laytheme.com
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Search