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 4 months ago - 11 years 4 months ago #229914 by emanuelr
My main problem is that workflow set by conditional fields works in registration form and after a missing required data in the profile update form, but not when the profile update form is loaded for the first time.

Now in details:
In the attached file I demonstrate the logic I'm trying to achieve.
The scenario is of employees from many divisions and sub-divisions are registering to the community site.
  1. So, the main select field lets the user choosing the main division.
  2. Then, based on the selection, a new field conditional self is triggered to SHOW according the relevant division chosed. (each division has it's own sub-division select field).
  3. Besides, when a sub-division field is set to show and the user choose an option, another Field Conditional Others rule is set to show specific options of a third selection field.
  4. And it goes on (a 4th radio buttons field as set to show based, Field conditional self, based on the option selected from the 3rd field.
So, as said - in registration it works fine.
But when a user tries to update his profile, the fields with the conditional rules don't appear.
If he tries to change one of the other existing fields and save, then he gets an error message saying that one of the fields he didn't see is required. After closing the error message, he gets the form again, this time as it is in the registration form, but he needs to define all of the conditional fields from the beginning.

Another problem which I mentioned in the past - when I set Field Option to show only some of the other field select options, once I change anything in this rule, I loose the fields selection and have to do it again from the beginning...
Attachments:
Last edit: 11 years 4 months ago by emanuelr.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48465
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #229924 by krileon
Joomla version? CB version? CB Conditional version? Are all your conditionals configured to function in profile edit? Sounds as if maybe 1 or 2 is not set to work in profile edit.

Another problem which I mentioned in the past - when I set Field Option to show only some of the other field select options, once I change anything in this rule, I loose the fields selection and have to do it again from the beginning...

Confirmed bug. Created the below bug ticket to fix for next release.

forge.joomlapolis.com/issues/4089


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 4 months ago #229928 by emanuelr
Sorry about missing details..

J2.5.11, CB1.9, Conditional plugin 3.0.8

Plugin configuration: Conditions Backend and Reset are enabled, Registration Step By Step disabled, Template default, Validate enabled.
The tools show a warning: Field :: Missing show and/or hide - 99, 100 (and the numbers link to two of the problematic fields which are not shown in the profile edit page)

The Conditional field are set this way: see attached screenshot.
The conditions include 3 rules:
Field conditional self, If field A Equal To VALUE, Translate disabled, Mode Show,For (all of the options) Enable, As Two Way.

The second is similar, but set the field to REQUIRE and the For set is almost the same, but Userlist Search is set to Disable.

The 3rd rule is
Field Conditional Others, Is Operator NOT EMPTY, Then Field Options (some options of two different select fields are chosen.

The same goes for the other conditional fields with the relevant EQUAL TO and Fields name.

Thanks for taking care of the bug.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48465
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago - 11 years 4 months ago #229929 by krileon

The tools show a warning: Field :: Missing show and/or hide - 99, 100 (and the numbers link to two of the problematic fields which are not shown in the profile edit page)

This means you've 2 fields with conditionals that aren't doing anything. Are those 2 fields conditional self or conditional other?

Please PM backend login credentials and include exact steps to duplicate the issue so may take a look.


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 4 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 4 months ago #229932 by emanuelr
Those two fields, both have 3 rules, two of them are conditional self (to make the field visible and required) and one conditional others to make some options visible in a different field.

I sent you a PM.

The name of the two fields mentioned above are cb_agapimfoperations and cb_agapimservice and they suppose to be triggered by the field cb_samancal

Thanks,
Emanuel

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 #229957 by krileon
Have reviewed your install and it's due to your Joomla template. For some reason $_POST is being populated on a $_GET response. When it does this on profile edit CB Conditional thinks the profile edit has been submitted so it can handle removing fields. This causes the field to be removed from profile edit display entirely, which is why the conditions don't work anymore. If you swap to Beez5 for example it works again.

I then checked your templates parameters and it's due to "Load Transition". I've turned this feature off, which doesn't do anything except cause a silly jQuery fade in completely necessarily, and your issue appears resolved. Please also confirm if is resolved.

I've made a bug ticket for next release to make the $_POST check more specific to avoid such conflicts.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum