Hi, I have a multipage form. Expecially on mobile device, when user click to go next step my page reloads and the second step of the form is loaded but the page is redisplayed at the top meanwhile the form stays bottom and this create such confusion bcause the user would expect to see the form instead of another part of the page that also do not contains the form.
How can I solve it so that when user go to next steps and the page reloads it always repositioning the user view on the top of the form instead of at the top ao the website page?
I don't want also to use ajax to submit the form
Any suggestion?
Hi deltafidesign,
I've no idea how you have this set up :-( Is the form in a module? That would explain why it re-displays.
Bob
Yes Bob, the form is inside a module and I must leave it there... any idea?
Hi,
You can try to disable the "relative url" setting under the "HTML" action, that would load the next page as the full page content, otherwise you will need some code to scroll the page when it loads.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Disabling the "Relative URL" helped a bit but the better solution would be to have some code to scroll the page when it loads. I'm not able to made that code, could you please help me?
Thanks in advance.
Hi,
it should be like this:
jQuery(document).ready(function($){
$('html, body').animate({
scrollTop: $("#myformid").offset().top
}, 2000);
});
and you should replace
myformid with the id of your form.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thanks Max,
I've added 2 javascript, one for each step (last step is a thank you message with a different id than the form id) and it works now.