Skip Navigation

[Resolved] Make a CRED form visible to guest users

This thread is resolved. Here is a description of the problem and solution.

Problem:
A Toolset Form should be visible to guest users.

Solution:
When you have Access enabled, Forms will only be visible to guest users if you explicitly give such permission, by visiting Toolset > Access Control > Toolset Forms.

Relevant Documentation:
https://toolset.com/documentation/user-guides/access-control-for-cred-forms/

This support ticket is created 6 years, 8 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by JosV9233 6 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#731879

On one page (hidden link) I check successfully if a user is logged in. On another (hidden link) it does not work (anymore).

Code on the successful page

[code]
[wpv-conditional if="( '[wpv-current-user info='logged_in']' eq 'false' )"]
Je kunt hier inloggen
[wpv-login-form]
Nieuwe gebruiker? hidden link">Registreer eerst.
hidden link">
Wachtwoord vergeten?

[/wpv-conditional]
[wpv-conditional if="( '[wpv-current-user info='logged_in']' eq 'true' )"]
<h3>Welkom [wpv-user field='user_login']</h3>
...etc...[/code]

Code on the page which is not successful:

[code]

[wpv-conditional if="( '[wpv-current-user info='logged_in']' eq 'false' )"]
[cred_user_form form="nieuw-account"]
[/wpv-conditional]
[wpv-conditional if="( '[wpv-current-user info='logged_in']' eq 'true' )"]
Je kunt geen tweede account maken![/wpv-conditional]
[/code]

In this last chunk of code it does show "Je kunt geen tweede account maken!" when the user is already logged in. Only the cred-form will not appear when the user is not logged in yet.

#732304

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-04-25 at 09.11.33.png

Hi there

The problem is not with the conditional test—I added a "you are not logged in" message to the page which displays correctly—but with your CRED form.

You have Access activated, and so you must make the form visible to guest users. See the screenshot.

Go to Toolset > Access Control > CRED Forms

#732670

Hi Nigel,
How obvious and how stupid of me not to see that.
Thanks a lot for the correct and super fast support.
Jos