Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

How to run Add-form from Login page?

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

How to run Add-form from Login page?

Unread post 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?
You do not have the required permissions to view the files attached to this post.
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: How to run Add-form from Login page?

Unread post 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
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: How to run Add-form from Login page?

Unread post 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!
Wbr, miasoft.
Post Reply