Page 1 of 1

Edit profile form

Posted: Tue Feb 14, 2017 1:44 am
by alex4orly
I converted the object to a form (very convenient to have this option)
All works fine, editing and saving data by members.

I am loading the form into an iFrame on the main page of my site

Just have TWO questions:

1) Upon submitting the change with the "Update" button - the process - goes back and loads the entire website into that same iFrame - which of course looks wrong, How do I take it back to where it started?
2) At the bootom of the form I have "<?php echo $error_message; ?>" which was created when converting the object to a Form. What is this for? How can I use it?

Cheers

Re: Edit profile form

Posted: Tue Feb 14, 2017 2:28 am
by maxime
right click on your update profile form form and select target : _Top then your sucess page will not goes in the iframe !

Re: Edit profile form

Posted: Tue Feb 14, 2017 6:09 am
by alex4orly
maxime wrote:right click on your update profile form form and select target : _Top then your sucess page will not goes in the iframe !
Thanks Maxime

Are those things documented anywhere?

Cheers

Re: Edit profile form

Posted: Tue Feb 14, 2017 6:48 am
by Pablo
Are those things documented anywhere?
This is standard HTML functionality.
http://www.w3schools.com/tags/att_form_target.asp

Re: Edit profile form

Posted: Tue Feb 14, 2017 7:11 am
by alex4orly
Pablo wrote:
Are those things documented anywhere?
This is standard HTML functionality.
http://www.w3schools.com/tags/att_form_target.asp
Thanks Pablo - I still have a long way to go

The main problem is of course - how do I know to look for it in the first place...

Cheers