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)
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:
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
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/