Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 182 Views
  • 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.
  • A Offline
    A Offline
    arminunruh
    Global Moderator
    wrote on Nov 14, 2024, 9:36 AM last edited by
    #2

    do u have a link? whats the problem exactly? the button doesnt work on mobile or it doesnt show up?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      joackim
      wrote on Nov 14, 2024, 12:55 PM last edited by
      #3

      sorry... i forgot the link. https://ffstudio.ch

      the form is here but no message if the entries are empty and the subscribe button doesn't work.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        joackim
        wrote on Nov 16, 2024, 5:23 PM last edited by
        #4

        Did you have a look?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Nov 16, 2024, 5:37 PM 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
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Nov 16, 2024, 5:37 PM last edited by
            #6

            and u did a really amazing job with this website!

            1 Reply Last reply
            0
            • J Offline
              J Offline
              joackim
              wrote on Nov 17, 2024, 5:01 PM 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 Offline
                J Offline
                joackim
                wrote on Nov 17, 2024, 5:13 PM last edited by
                #8

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

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  arminunruh
                  Global Moderator
                  wrote on Nov 19, 2024, 4:58 PM 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 Offline
                    J Offline
                    joackim
                    wrote on Nov 27, 2024, 9:16 AM 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 Offline
                      J Offline
                      joackim
                      wrote on Nov 27, 2024, 9:18 AM last edited by
                      #11

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

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        arminunruh
                        Global Moderator
                        wrote on Dec 9, 2024, 5:03 PM 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
                        • A Offline
                          A Offline
                          arminunruh
                          Global Moderator
                          wrote on Dec 9, 2024, 5:03 PM 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
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          I also code custom websites or custom Lay features.
                          💿 Email me here: 💿
                          info@laytheme.com

                          Before you post:
                          1. When using a WordPress Cache plugin, disable it or clear your cache.
                          2. Update Lay Theme and all Lay Theme Addons
                          3. Disable all Plugins
                          4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                          This often solves issues you might run into

                          When you post:
                          1. Post a link to where the problem is
                          2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                          3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                          Online Users
                          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