Contact Form not starting at top of page
Автор: John H.
Просмотрено 1300,
Подписчики 1,
Размещенный 0
I am using the contact form to create a survey. All works great but there is one issue.
I am using the Seperator and tick "Display data in a new field" option
The new field displays ok, however, it starts at the bottom and not the top of the page.
https://garfieldvictoria.com.au/2022-survey.html
Is there a way to have this fixed?
Thanks for any help.
JohnH
Размещено
Автор
Sorry I meant to say "Display data in a new FRAME"
It looks great John, is it the fact that it scrolls up that is annoying you or that when the next frame opens it does not always display the top lines of the form.??
I had a play but this appears to be the default action. Short of adding 3rd party code to overide this I doubt it can be modified.
Автор
Thanks for your help Esahc.
The form looks OK just stupid it goes to the bottom of the page first.
Oh well I guess I will need to put a button on the bottom "Click to go to top of page"
Bit weird if you ask me, but hey I'm getting used to some objects just not doing what they should do.
Enjoy your weekend.
Cheers - John
Good afternoon John.
It can be fixed. Create shorter poll forms for each new "Next" frame. You need to make such a number of polls in a frame that these polls fit on one page without scrolling down. Even smaller can be done to accommodate different screen resolutions of users.
This way you can solve your problem without using third-party codes.
Sincerely,
Dmitriy.
Автор
Thanks Dmitriy,
What a great idea. Will try that and see what it looks like.
Cheers
John
... you could solve with my simple and easy inventions, of the kind you have already known and appreciated, and therefore, if you are interested in trying again, let me know and I will come back here...
Hello. ciao
.
Автор
Hey KolAsim to the rescue....
Of course, I would appreciate your help as always... even using Dmitriy's solution it is going to end up being on a lot of separate pages. I have done them the way I did so they are sort of categorised.
Yes, please come back and show me your magic... LOL
Thanks KolAsim.
Cheers
John H
... OK ... here is the code for the current "2022-survey" page:
<script>
/** -- ... multiple form + Anchor, by KolAsim --**/
$("document").ready(function() {//K>
anchorK = "#imObjectForm_277_02"; // reference object containing the form
ritardoK = 3; // seconds late
setTimeout(function() { //K1>
$("input[value=Next]").click(function(){
setTimeout(function() { //K2>
x5engine.utils.location(anchorK, null, false);
},500);//K2<<
})
$("input[value=Back]").click(function(){
setTimeout(function() { //K3>
x5engine.utils.location(anchorK, null, false);
},500);//K3<<
})
},ritardoK * 1000);//K1<<
});//K<<
</script>
..................................................
.
... + ... ... the code is to be pasted into the Properties of the "2022-survey" page, exactly in this section:
> Step 3 - Map > The 'Page Properties' window > Options in the Expert section| ▪Custom Code:
>> 3rd (third) option > Before closing the HEAD tag
.
ciao
.
Автор
And once again KolAsim saves the day.
Thanks KolAsim, if I lived closer to where you are I would buy you a drink.
Maybe you should start selling objects that actually don't need adjusting. :-)
Common sense says that when you place a page break somewhere the next page would start at the top not the bottom, or am I reading this wrong. Just a thought for the author of the Forms Object.
Once again, many thanks for coming to the rescue. You have no idea how much I appreciate your input.
Kindest regards,
John H
... Thanks, bye...