Skip Navigation

[Resolved] A simple password protection for redirect.

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1217008

Tell us what you are trying to do?

What I'm looking for is just a form with a single field which a user can enter a password into and be redirected to a specific page if they enter it correct. Ideally wouldn't be case sensitive. I can build a form but is there a way to have a conditional redirect on submit based on the value of a field?

Thanks,

Chad (Christopher)

#1217358

Hello,

There is a similar built-in feature within WordPress: Password Protected Content

See document:
https://codex.wordpress.org/Content_Visibility#Password_Protected_Content
Password Protected content is not immediately visible to the outside world. Instead, visitors will see a prompt similar to this:

#1218314

Yes, for the sake of not leaning on that, and uniformity of look without restyling the wp protected page code, if there was a way to just have a generic text field in a cred form which validated and redirected given a given input on submit.
__________________________________________

[cred_generic_field field='LibraryCode' type='textfield' class='' urlparam='']
{
"required":1,
"validate_format":1,
"default":"Enter Code"
}
[/cred_generic_field]

_________________________________________

Hoping there was someway to do a conditional based on user entry, so I could let it be not case sensitive for instance.

My other thought was to add javascript to the form to listen to the field and redirect suiting the criteria to do so.

Any thoughts on this line of pursuit?

Thanks so much,

Chad

#1218502

Unfortunately, Toolset form is for create/edit posts or users, there isn't such a built-in feature within Toolset Forms plugin:
just a form with a single field which a user can enter a password into and be redirected to a specific page if they enter it correct...

You can also add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Our developers will evaluate it.

If you are going to setup custom codes for it, you can check it with our Toolset Contractors:
https://toolset.com/contractors/