Skip to Content Skip to Menu

[SOLVED] Alligning field horizontally in tab

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
5 years 11 months ago #308146 by krileon
Replied by krileon on topic Alligning field horizontally in tab
If the field isn't set to display on profile, is protected by CB Privacy and the viewing user doesn't have access, or is conditioned by CB Conditional and the condition isn't met then it won't display when using [cb:userfield field="FIELD_NAME" /] substitutions which fully respect access checks. [FIELD_NAME] pulls the value directly from the user object and does not respect access checks (note this is working as intended).


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.
The following user(s) said Thank You: RebeccaWool

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

5 years 11 months ago - 5 years 11 months ago #308234 by RebeccaWool
Replied by RebeccaWool on topic Alligning field horizontally in tab
Kyle,

Ok, I understand what you are stating and it makes perfect sense, I would expect nothing less but, it appears that the code:
Code:
[cb:userfield field="cb_field_name_here" /]

can be placed in a custom HTML field but that custom HTML field must be set to the tab that the above code will appear in!

Therefore, I can't use the [cb"user field......] in a custom HTML field that will be presented to the user in a tab other than the one it is set to appear in?
I wanted to present the [cb:userfield.....[ field in a table within a custom HTML field within a different tab from the tab that the {cb"user field.....[ but it appears it will not work.

Details:
Field name: cb_course_date
Type: date
Tab: Training Courses
Read only: No
Show on profile: Yes
Show on registration: No
Show on edit: Yes

Then I have:

Field name: cb_mandatory_courses
Type" Custom HTML
Tab: Mandatory Courses
Read only: No
Show on profile: Yes
Show on registration: No
Show on edit: Yes
Custom HTML: [cb:userfield field="cb_course_date" /]

I have double checked all the privacy and conditional settings, all are set to default.

Thank you for your help with this.

Life is a constant learning curve and I've just started out!
Last edit: 5 years 11 months ago by RebeccaWool. Reason: Added details of the field settings, names and tabs applied too.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
5 years 11 months ago - 5 years 11 months ago #308251 by krileon
Replied by krileon on topic Alligning field horizontally in tab
The Custom HTML field does not have to be on the same tab the field is on. The field just needs to be accessible for [cb:userfield field="FIELD_NAME" /] to output it. If the tab it's on is unpublished or blocked by CB Conditional or CB Privacy then the field won't output as the tab that the field is on isn't accessible. The same applies to the field it self as all access checks are respected with [cb:userfield field="FIELD_NAME" /] substitutions.

An easy way to make sure the field will substitute with [cb:userfield field="FIELD_NAME" /] is just to move the tab to a tab position that's visible on profile. Now see if you can see the field. If you can't then [cb:userfield field="FIELD_NAME" /] won't be able to display it either. If you can then move the tab back to a not shown on profile position and [cb:userfield field="FIELD_NAME" /] should display it fine.


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.
Last edit: 5 years 11 months ago by krileon.
The following user(s) said Thank You: RebeccaWool

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

5 years 11 months ago #308260 by RebeccaWool
Replied by RebeccaWool on topic Alligning field horizontally in tab
Kyle,

Wonderful, it's now working exactly as required, you are a star!

Thank you!

Life is a constant learning curve and I've just started out!
The following user(s) said Thank You: nant, krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum