Page 1 of 1
How to run Add-form from Login page?
Posted: Tue Sep 14, 2021 3:54 pm
by miasoft
I made login form
14.09_1.png
I would like to run my edit form in ADD-mode for initial user's registration (initially without login/password),
Is it possible?
Is there any other easy way to do it?
Re: How to run Add-form from Login page?
Posted: Tue Sep 14, 2021 4:03 pm
by kev1n
Create a separate user and access level.
Then add a link to index.php?&u=1&f=FORM_ID_OF_FF0&r=-1 (Replace FORM_ID_OF_FF with the form Id of your FF0 form)
Thg login parameters are explained here:
https://wiki.nubuilder.cloud/ ... .php/Login
Re: How to run Add-form from Login page?
Posted: Sat Sep 18, 2021 5:30 am
by miasoft
kev1n wrote:
Then add a link to index.php?&u=1&f=FORM_ID_OF_FF0&r=-1 (Replace FORM_ID_OF_FF with the form Id of your FF0 form)
Sorry, I didn't answer for a long time ...
I gave up on such a call to the edit form - some functions are unavailable and some do not work as expected.
Now I add link on AddUserFunction:
Code: Select all
<input id='submit' style='width:180px' type='submit' class='nuButton' onClick='AddUserFunction()' value='Первичная регистрация'/>
and then I just call nuuserhome;
Code: Select all
function AddUserFunction() {
window.onbeforeunload = null; // hide dialog window "Leave the site..."
window.location.href='index.php?&u=hide&p=hide&f=nuuserhome';
}
and on the nuuserhome-form I manipulate my tabs (hide/unhide). All works fine!