Skip to Content Skip to Menu

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

Conditional is not working in profile update form

  • emanuelr
  • emanuelr
  • OFFLINE
  • Posts: 38
  • Thanks: 2
  • Karma: 3
11 years 3 months ago #229964 by emanuelr
Wow... I struggled with is for such a long time...
Great progress!

Now, the first conditional field appears and the form works well,
but the data of the conditional fields don't load and the fields are empty, so the other conditional fields don't appear.

Please see the attached two screen shots - one when I open the profile update form, the second when I select AGAIN the data, so you can see how I expect it to appear at the first place...

I really appreciate the efforts and overall support, with such a huge users community.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48465
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago #230010 by krileon

but the data of the conditional fields don't load and the fields are empty

That's working as intended. You have value resetting enabled. If the conditional fails it resets the value. Make the conditional match, change the value, update your profile, and it should be working fine. You can disable value resetting within CB Conditional backend if you don't want it to reset on mismatch.


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.

  • emanuelr
  • emanuelr
  • OFFLINE
  • Posts: 38
  • Thanks: 2
  • Karma: 3
11 years 3 months ago #230038 by emanuelr
I assume that you meant the parameter of the plugin.

Disabling the reset feature is not good for me since I have a chain of conditional fields and if I don't reset the mismatch, changing the first conditional field, won't remove the other depended on the previous selection.

I noticed that at the backend, the data does load perfectly(!), therefore all the depended fields. The problem is only at the frontend.

I also noticed that Substitutions work well in the backend, but not in the frontend.
I'm attaching two screenshots - one from the backend form and the other from the frontend.
There you can see the difference between the conditional fields and also you can see the difference between the last line of each form with the missing of some of the substitutions, while other do exists. I thought I'll open a different thread regarding the substitutions, but maybe it is related...).
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48465
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago #230059 by krileon
Have taken a look and it appears to be an issue with value resetting. Am looking into the cause. It is also the cause of your substitution issue as it removes fields at the field fetch API call, which is extremely early in field value display so conditionals basically work anywhere.


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.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48465
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago - 11 years 3 months ago #230073 by krileon
Have confirmed all issues fixed and also tested thoroughly on your install with everyone working fine now. Please also test and confirm if is working fine. I've installed release 3.0.9 for you so you don't need to upgrade when new version is released.


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

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

  • emanuelr
  • emanuelr
  • OFFLINE
  • Posts: 38
  • Thanks: 2
  • Karma: 3
11 years 3 months ago #230170 by emanuelr
Hi Kyle,
YES! Both substitutions and conditional fields are working now.
This is great.
The combination of the autoaction and conditional fields makes the entire framework extremely strong and versatile!

I saw that you cancelled the bug report at Forge ( forge.joomlapolis.com/issues/4089 ). I'll keep investigating it and report with as much as details as I can.

One issue which is not directly related to the conditional fields, but to the logic of using them:
I don't show the conditional fields in the profile. I only use them for registration and profile update. From there, for presentation I use formatted substitutions and autoactions.
How ever, for search in the user lists, the conditional fields are very helpful (I use them according the the organization chart, so looking for a person by the division he/she works at is comfortable if you don't know the exact name).
The problem is, that if I define "Show on profile - NO", then the field won't appear in the user list search form...
Any solution you can think of?

THANK YOU VERY MUCH for looking so deeply in the main subject of this thread and solving the issue so quickly.

Emanuel.
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