Page 1 of 2

Form access without login

Posted: Sun Mar 02, 2014 4:39 pm
by Fike
Hi,

For some applications I used the ''Access without login' feature of nuBuilder 2 to make some cool things like building a QR code with an url which contained the form id and the record id as parameters of an edit form, and when somebody scanned the QR code with a smartpgone, the nubuilder's edit form opened and displayed the record's information.

I have used this feature also to automate/schedule reports sent by email (this post says how I did it) http://forums.nubuilder.cloud/viewtopic.php?f=3&t=8303

I noticed that in nuBuilderPro there is no longer the 'Access without login' dropdown in the General Tab of the forms, and I also noticed that nuBuilderPro doesn't use parameters in the url.

Is there anyway to open an edit form on a give record ID without being logged in ?


Kind regrads,

Fike

Re: Form access without login

Posted: Tue Mar 04, 2014 2:47 am
by admin
Fike,

(You'll need the latest build)


You can do it with nucall.php

URL.. (p=Code of PHP Code)

Code: Select all

http://localhost/site_c/nucall.php?p=1&a=calling&b=without&c=logging&d=in
PHP.. (Allow non secure Access = Yes)

Code: Select all

print '#a# #b# #c# #d#';
Capture3.PNG
Steven

Re: Form access without login

Posted: Tue Mar 04, 2014 5:34 am
by Fike
Great! Thanks a lot Steven !

Re: Form access without login

Posted: Wed Mar 05, 2014 12:23 am
by admin
.

Re: Form access without login

Posted: Thu Jul 24, 2014 2:36 am
by israelwebdev
How do we pull up a form then in PHP?
Not the DB record, but a working form?

Re: Form access without login

Posted: Thu Jul 24, 2014 7:13 am
by admin
israelwebdev,

I don't understand your question

Steven

Re: Form access without login

Posted: Thu Jul 24, 2014 2:46 pm
by israelwebdev
The original question was "how do I render an edit form with non-secure access?"
The answer was to enable that option using PHP code, and call it using nucall.php

What PHP code will let me render the form?
Would I use a combination of PHP and JS (nuOpenForm...)?

The other option would be to create a new user with the desired form as a homepage, and use the u/p parameters to auto-login and embed.

Re: Form access without login

Posted: Tue Jul 29, 2014 11:54 pm
by admin
israelwebdev,

The auto login would be the best way.

Steven

Re: Form access without login

Posted: Sun Aug 24, 2014 6:38 am
by Fike
I am using the auto login option proposed by israelwebdev.

It works fine. However, the homepage form of the recently created user opens at record '-1', and I would like it to open at a given recrod.

Is there any parameter that I can pass on the url to open that form at a given record?

I mean, something like:

http://localhost/nupro/index.php?u=newu ... 4f69eg5g96


Kind regrads,


Fike

Re: Form access without login

Posted: Wed Aug 27, 2014 11:32 pm
by admin
Fike,

There is in the latest build..

http://wiki.nubuilder.net/index.php/Mis ... ogging_in.

Steven