Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Field value will not hold in edit or show on profile

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
8 years 11 months ago - 8 years 11 months ago #273689 by jpdenny1
Hello CB, hopefully you may be able to shed some light on this as I have tried numerous combinations.

I have 2 fields.

1. Establishment name 2. Position : both in Contact Info tab.

Both appear in registration but are conditioed to only appear with another field selection. Therefore they are not required.

1 works as intended. but 2 will show on profile edit but after update the value deletes itself (out of the visible edit value field anyway).

Side note: I also put both field values into a custom html field to show together in a different tab, using e.g. [cb:userdata field="cb_establishmentname" /]. When 2 deletes itself it still show sup here but disappears after a while.

I put 2's settings the same as 1, unpublished the custom html field, no good. Conditions used are: usergroup (hide) for all except the intended group to use it. and if not equal to 2 then hide registration and if equal to 2 (show): profile edit, registration and profile view.

Also 2 will not show as a field value in the Contact Info tab on profile view. (1 behaves correctly and does).

Any ideas, been at it a few hours now :-/

Joomla 3.6.2
CB 2.0.15 Latest Nightly
GJ 3.0.1 nightly
Php version 5.5.35
Auto actions nightly
Activity nightly
Privacy nightly
Conditions nightly
CB Gallery 2.0
.....all nightly!
Uddeim 3.9
Last edit: 8 years 11 months ago by nant.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago - 8 years 11 months ago #273690 by krileon
Field conditional self is recommended usage instead of a Field conditional others usage. Sounds like field value resetting is triggering as the condition is failing in PHP. Note a field can not be conditioned multiple times and only the last condition applied to a field is relevant.


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: 8 years 11 months ago by krileon.

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

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
8 years 11 months ago - 8 years 11 months ago #273699 by jpdenny1
OK thanks, they were the settings at the time but I have tried other settings and none work, including having only usergroup as a condition (as it's only relevant to this one) i.e. set to 'hide' from all other registered usergroups, edit and view.

As 1 works no bother I think I will try to rebuild 2 (in case I changed the database field name previously) and also watch the conditions tuitorial again as I remember it mentioning there are two ways to condition fields one in itself and the other through the other field, I believe I know how to do each way but just to make sure.

I'll get back to you if unsuccessful. Thanks for reply.

Joomla 3.6.2
CB 2.0.15 Latest Nightly
GJ 3.0.1 nightly
Php version 5.5.35
Auto actions nightly
Activity nightly
Privacy nightly
Conditions nightly
CB Gallery 2.0
.....all nightly!
Uddeim 3.9
Last edit: 8 years 11 months ago by jpdenny1.

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

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
8 years 11 months ago - 8 years 11 months ago #273702 by jpdenny1
Yap, that fixed it, made a new field. Never change the names cb_example but that's all I can think of, that would have caused it, as all other things were covered besides getting into database stuff.

Just that 1 worked and 2 didn't (exact same) I thought something bigger might be wrong plus the fact I just went through everything as a final check before testing, therefore I was concerned.

Kind regards

Joomla 3.6.2
CB 2.0.15 Latest Nightly
GJ 3.0.1 nightly
Php version 5.5.35
Auto actions nightly
Activity nightly
Privacy nightly
Conditions nightly
CB Gallery 2.0
.....all nightly!
Uddeim 3.9
Last edit: 8 years 11 months ago by jpdenny1.
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