Skip to Content Skip to Menu

[SOLVED] Field Conditional Error for username ME

  • lylejover
  • lylejover
  • OFFLINE
  • Posts: 30
  • Thanks: 3
  • Karma: 1
10 years 3 months ago - 10 years 3 months ago #246909 by lylejover
Hi,

I get this error: [an error occurred while processing this directive] and the entire page is not loading. This is the only text I see in the browser.

When I use Field conditional whenever I use [cb:userfield field="username" user="#me" /]

Field: Username
Operator: Equal To
Value: [cb:userfield field="username" user="#me" /]

I did some trial and error and the error only shows when "/" is in the substitution syntax. I know this is the correct one (having "/") but for some reason I am encountering an error.

Additional information"

-Using the same conditions for Tab Conditional is working perfectly. This only happens when I directly make a field to show/hide depending who is viewing it.

-Field conditional in other variants works perfectly. e.g. Field vs a certain value

Any thoughts?
Attachments:
Last edit: 10 years 3 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 3 months ago #246925 by krileon
Replied by krileon on topic Field Conditional Error for username ME
userfield substitutions will output HTML. You want to userdata which is raw profile data. The substitution should be as follows.

[cb:userdata field="username" user="#me" /]

If you're still having issues with the above you'll need to provide what error you're seeing. Be sure to enable debug mode and maximum error reporting in Joomla global configuration to ensure errors will output. Please also ensure CB Conditional is up to date.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • lylejover
  • lylejover
  • OFFLINE
  • Posts: 30
  • Thanks: 3
  • Karma: 1
10 years 3 months ago #246943 by lylejover
Replied by lylejover on topic Field Conditional Error for username ME
working perfectly. You're the best. Great support. :)
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum