- sacredsmileAsked on April 08, 2013 at 03:01 AM
Hi. I have embedded a form with lightbox-script. When i press next and previous buttons the page scrolls down to the first element of the form. But the auto-scroll also makes it cover the lightbox close button. And for people who are one my site and don't know this, it seems like the form is disappearing into the top of the screen, and that the close button becomes unavailable. Is there any way to make the scroll stop at the top of the form (above the title and close button)?
- JotForm SupportEltonCrisAnswered on April 08, 2013 at 04:07 AM
Please let us know the website URL where you have embedded your lightbox form so we can check the problem here? This would help us troubleshoot the problem further.
- sacredsmileAnswered on April 08, 2013 at 04:12 AM
Ok. Here is the page with the form. Press the big orange button with the txt "Søk nå" to the right on the page.
- JotForm SupportEltonCrisAnswered on April 08, 2013 at 05:18 AM
Thanks for your swift response.
Actually, page-break was created that way in order for the form to load on top of the form fields when you switch back and fort of the pages. However, if you do not like that behavior, you can replace your current lightbox source URL found on the first line of your lightbox embed code.
I have added a nojump parameter on this script so the lightbox will not moved when page break button is clicked.
Hope this helps. Thank you!
- sacredsmileAnswered on April 08, 2013 at 05:33 AM
Thank you for your effort EltonCris. As you say the form now doesn't jump at all. But this was not what i was looking for. What i had in mind was that the form should jump to the top of the form on page break, but not scroll page down to the first element in the form. The page should always be constant on top, and only the form inside the lightbox should jump.
Is this possible?
- JotForm SupportEltonCrisAnswered on April 08, 2013 at 06:17 AM
I see, thanks for your clarification and sorry to misunderstand it.
How about using the lightbox jQuery version? I can see your lightbox script source doesn't have "2" after feedback. This means you are using the prototype script, to switch to jQuery simply add "2" after feebdack. Example:
Let me know if this doesn't work for you. Thank you!
- sacredsmileAnswered on April 08, 2013 at 06:23 AM
Or do you have any other lightbox versions that i could test?
- JotForm SupportEltonCrisAnswered on April 08, 2013 at 08:46 AM
I can't seem to test properly using your source, would you mind trying this script? See if this helps without any conflicts.
Just do the same, replace the src url on the first line of your lightbox embed code.
Let me know if this doesn't work. Thank you for your patience and cooperation. ;)
- sacredsmileAnswered on April 08, 2013 at 08:52 AM
What would the link be if i want to use secure server?
- JotForm SupportEltonCrisAnswered on April 08, 2013 at 09:01 AM
First off, may we know if the last script works?
By the way, since I am providing a workaround on the scripts, they are no longer hosted at www.jotform.com, instead the script is hosted at JotForm's file repository. Sorry though but it doesn't support secure https connection. My suggestion would be to copy the full script and upload it to your website. That way, the script will depend on your domain protocol.
- sacredsmileAnswered on April 08, 2013 at 09:01 AM
So you can relax ;) Thank you for trying though.
- JotForm SupportEltonCrisAnswered on April 08, 2013 at 09:08 AM
That's awesome! We are so much glad to hear that everything works now. =)
Feel free to message us here if you have further inquiries about JotForm. Cheers!