How to run Add-form from Login page?

Questions related to customising nuBuilder Forte with JavaScript or PHP.

How to run Add-form from Login page?

Unread postby miasoft » Tue Sep 14, 2021 11:24 pm

I made login form
14.09_1.png
14.09_1.png (44.14 KiB) Viewed 101 times

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?
Wbr, miasoft.
miasoft
 
Posts: 93
Joined: Wed Dec 23, 2020 8:58 pm

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

Unread postby kev1n » Tue Sep 14, 2021 11:33 pm

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.net/nubuilderfor ... .php/Login
kev1n
nuBuilder Team
 
Posts: 2008
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

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

Unread postby miasoft » Sat Sep 18, 2021 1:00 pm

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.
miasoft
 
Posts: 93
Joined: Wed Dec 23, 2020 8:58 pm


Return to Custom Code

Who is online

Users browsing this forum: No registered users and 4 guests