Skip Navigation

[Resolved] Toolset Permission denied custom message

This support ticket is created 5 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 3 voices.

Last updated by AustinB6251 5 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1282865

Hello,

We have a CRED form. If a user is not logged in, the message "Permission denied" will appear. Can we change this message to a custom message or have it redirect to another page? What are the options?

#1282915

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You can wrap the form using [wpv-conditional] shortcode to check if user is loggedin or not.

For example:

[wpv-conditional if="('[wpv-current-user info='id']' ne  '')"]
 user is logged in  - add your form here
[/wpv-conditional]

[wpv-conditional if="('[wpv-current-user info='id']' eq  '')"]
 user is NOT logged in
[/wpv-conditional]

Please have look at following documentation that may help you:
=> https://toolset.com/documentation/views-shortcodes/#wpv-current-user
=> https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

#1282929

My issue is resolved now. Thank you!

#1290117

This support ticket covers off on something I'm trying to work out - is there a simple way just to change the text 'Permission Denied'.

My scenario is slightly more complex than this ticket as I'm using a specific user role (Customer) to control access to the form.

The main thing I want to do is change the 'Permission Denied' string to add in a login link, so that a user can login for access if they have sufficient access.