Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Password-Protect Download Button

Katya,

I am unsure of what JS to run on button click that will fire a dialog box where the user can input their password.

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Password-Protect Download Button

Can I create a pop-up style dialog box without having to create a whole login page?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Password-Protect Download Button

Hi Mike,

Yes, you can implement only dialog page with login form without implementing it in whole application.

See how to create dialog page: http://prntscr.com/41f7i5/direct

To open dialog you can use following js code:

pre

//Note you should replace "dialogPageName" with your dialog page name.
Apperyio.navigateTo("dialogPageName")

/pre

Regards.

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Password-Protect Download Button

Perfect, thanks guys.

Is it possible to omit the username input box and just have a user enter a password?

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Password-Protect Download Button

Perfect, thanks guys

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Password-Protect Download Button

Is it possible to get rid of the username input and just require a password for a login service?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Password-Protect Download Button

Hi Mike,

Appery.io Database uses login system based on login and password: http://devcenter.appery.io/documentat...

You could create your own collection with passwords only, but then our default services won't work and you'll need to implement custom logic.

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Password-Protect Download Button

Thanks Katya

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Password-Protect Download Button

Hi Mike,

However, I would recommend that you add an only input field for password and just map it to both request parameters 'username' and 'password' as I already advised above. This is the easiest way I think.

Mike6580064
Posts: 0
Joined: Wed Jan 15, 2014 6:00 pm

Password-Protect Download Button

Katya! I read your response incorrectly the first time. This is exactly the solution I was looking for! Thanks!

Return to “Issues”