Show form success page in the same page

Issues related to forms.
Post Reply
clementediego
 
 
Posts: 10
Joined: Wed Dec 07, 2022 9:23 am

Show form success page in the same page

Post by clementediego »

Hello, I have a form into the footer and when the visitor click submit, the success message have to show in the same place and not load a different success page.

Is an inline frame the best solution for achieve this?

Thanks
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Show form success page in the same page

Post by Pablo »

You can set the 'target' of the form in the form's properties.
clementediego
 
 
Posts: 10
Joined: Wed Dec 07, 2022 9:23 am

Re: Show form success page in the same page

Post by clementediego »

I use the form into a layout grid
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Show form success page in the same page

Post by Pablo »

This applies to all forms. A form in a layout grid does not work any different than a standard form. Only the layout is different.
wwonderfull
 
 
Posts: 1439
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: Show form success page in the same page

Post by wwonderfull »

viewtopic.php?t=89814

as Pablo mentioned you can use a dialogue for the success above is a post you can check
clementediego
 
 
Posts: 10
Joined: Wed Dec 07, 2022 9:23 am

Re: Show form success page in the same page

Post by clementediego »

Hello, I followed the guide end selected Target: Dialog1 but as form confirmation I see the success.html instead of Success dialog, what's wrong ?
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Show form success page in the same page

Post by Pablo »

To be able to help you, I need a DEMO project (.wbs file) so I can see all your settings.
Also, please include a description how to reproduce this problem.

I do not need the complete project because that will only take more time to figure out what you have done.
Basically, I just need a small project with one page and object(s) that are relevant to your question.

For further details about how to share a project file, please see this FAQ:
viewtopic.php?f=10&t=82134
clementediego
 
 
Posts: 10
Joined: Wed Dec 07, 2022 9:23 am

Re: Show form success page in the same page

Post by clementediego »

Hello Pablo,

you can dowload my project from here https://www.website365.it/Website365.zip

After load index.php, click on the green button in the form and you will notice:

FIRST PROBLEM: a new additional white page

SECOND PROBLEM: if you click on the previous tab in the browser, you will notice that the pop-up is more wide then it's in the project

Instead if you load master-frame.php everything function correctly

Thanks
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Show form success page in the same page

Post by Pablo »

Your project does not have a success and error page.

Please se this demo:
https://www.wysiwygwebbuilder.com/form_popup.html
clementediego
 
 
Posts: 10
Joined: Wed Dec 07, 2022 9:23 am

Re: Show form success page in the same page

Post by clementediego »

Hello Pablo,

after adding the success page and error page, the problem remain.

You can dowload THE UPDATED project from here https://www.website365.it/Website365.zip or you can see the test project here https://www.website365.it/test

If you click on the green button in the form, the pop-up dialog will appear correcly but also the success page.

I don't want that the success page appear because I'm using the pop-up dialog instead !

How to disable the success page ?
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Show form success page in the same page

Post by Pablo »

The problem is that the form is on a master frame. In this case, the popup functionality will not work.
The form and dialog need to be on the same page as the content.
clementediego
 
 
Posts: 10
Joined: Wed Dec 07, 2022 9:23 am

Re: Show form success page in the same page

Post by clementediego »

I solved using two embedded pages for every website page.

I named them master-page-header and master-page-footer.

Thanks
Base12
 
 
Posts: 71
Joined: Tue Sep 17, 2024 10:12 pm

Re: Show form success page in the same page

Post by Base12 »

clementediego wrote: Wed Oct 02, 2024 11:50 am I solved using two embedded pages for every website page.

I named them master-page-header and master-page-footer.

Thanks
Interesting.

Are your pages responsive or static?
User avatar
BaconFries
 
 
Posts: 5640
Joined: Thu Aug 16, 2007 7:32 pm

Re: Show form success page in the same page

Post by BaconFries »

Viewing the source code it is definitely responsive primarily "Layout Grids"
Base12
 
 
Posts: 71
Joined: Tue Sep 17, 2024 10:12 pm

Re: Show form success page in the same page

Post by Base12 »

BaconFries wrote: Fri Oct 11, 2024 6:40 pm Viewing the source code it is definitely responsive primarily "Layout Grids"
Thanks, BaconFries.

That confirms my suspicion that folks are inserting Embedded Pages into flexible layouts, even though it is not supported.
User avatar
Pablo
 
Posts: 22472
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Show form success page in the same page

Post by Pablo »

The reason why this is not supported is because there is no way to make this work with all possible combination of settings.
For example, an embedded page with absolute layout inside flexbox is never going to work.
Post Reply