Page 1 of 1
Logout button - Convert to Form
Posted: Tue Oct 05, 2021 10:22 am
by Aris
Hello!
I wish to locate on my web page (after Signup, Login... ) Logout button.
With right click on this button I see that I may convert it to Form.
1. Is this procedure necessary?
2. If YES, I must follow the same procedure as Signup form > Convert to Form > locate in a layout grid > Enable form etc?
I tried find answers in Login Template. But I cannot fint it.
Thank you.
PS: I work on WEB BUILDER 17X64
Re: Logout button - Convert to Form
Posted: Tue Oct 05, 2021 10:30 am
by Pablo
This is from the help:
Convert to Form
All login forms include an option to convert the predefined/fixed form to a standard form (right click on the login form to display the context menu).
This allows you to convert the static form into native Web builder objects so you can fully customize the layout and code if you like.
Note that customizing the PHP code requires knowledge of PHP. Making changes to the code without knowing what you're doing will result in undefined behavior!
Also note that the layout of the form will not be an exact copy of the original form because all input fields are now individual elements. All custom profile fields will be converted to an Editbox.
So, only if you want to modify the code then you can convert the button to a standard form.
Re: Logout button - Convert to Form
Posted: Tue Oct 05, 2021 10:57 am
by Aris
Thank you, Pablo.
If a user wishes to Logout or Delete Account, in which webpage I must locate these two buttons?
The first I think is the protecedt page to which she/he is directed upon successful Login. Am I correct?
Re: Logout button - Convert to Form
Posted: Tue Oct 05, 2021 11:13 am
by Pablo
Correct, you will to put the button on a protected pag.
The Logout or Delete Account forms do not work if the user is not logged in.
Re: Logout button - Convert to Form
Posted: Tue Oct 05, 2021 11:15 am
by Aris
Thank you, Pablo.