[SOLVED] CB Conditional and Save fields - Possible bug

7 years 5 months ago - 7 years 5 months ago #288228 by AchLive
To avoid any doubt of overlapping or incorrect conditions I have created this scenario in a new installation of Joomla localhost

I created a field (radio button), named "cb_scelta" with two options.
Option 1 = "Ridotto"
Option 2 = "Completo"

Then I created a field (text) conditional upon "cb_scelta" field.
if "cb_scelta" = "Completo" then show

In the registration and in this situation the field is displayed correctly only if "cb_scelta" = "Completo." Otherwise the field is not displayed.
The problem comes when I confirm the registration and then save. The value entered in the text field while recording is not saved in DB.

If, instead, the scenario change of the condition, and then

if "cb_scelta" [Not =] "Ridotto" then show

In the registration and in this situation the field is always displayed. I can hide it if I choose "Ridotto". Instead I display the field if I choose "Complete".
In this case when I confirm the registration and then save the data the value entered in the text field is saved correctly in the DB.

I hope I have explained well, please try to confirm the scenario for the bug and can find a solution.
Thanks for the support

Please Log in to join the conversation.

7 years 5 months ago - 7 years 5 months ago #288235 by AchLive
Replied by AchLive on topic CB Conditional and Save fields - Possible bug
The error may depend on PHP version I use?
I'm using version 5.4.27.
Joomla 3.6.4
CB 2.0.15+build.2016.11.17.23.30.51.00b5b220a
CB Conditional 4.0.7+build.2016.10.28.01.27.57.1750676ea

Please Log in to join the conversation.

7 years 5 months ago #288263 by krileon
Replied by krileon on topic CB Conditional and Save fields - Possible bug
Tested your exact scenario with the following and it works perfectly fine.

PHP: 5.6.27
Joomla: 3.6.4
CB: 2.0.15+build.2016.11.24.00.18.19.ddc99c3fc
CB Conditional: 4.0.7+build.2016.10.28.01.27.57.1750676ea

Also working perfectly fine on our demo site. To test simply set the fields on CB Conditional to display on registration. Their conditions already match this scenario.


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 to join the conversation.

7 years 5 months ago #288282 by AchLive
Replied by AchLive on topic CB Conditional and Save fields - Possible bug
Hi krileon, the problem is not whether the field or Tab is displayed when conditioning but saving the conditioned field data.
How did you write here the problem arises when the field that generates the condition is set as read-only.
I checked, and if the field is removed the check read only then it works and the conditioned field value is saved correctly.
We look forward to the resolution of the problem, thanks for the support

Please Log in to join the conversation.

7 years 5 months ago #288309 by krileon
Replied by krileon on topic CB Conditional and Save fields - Possible bug
Right, I understand the issue fine. Your issue and that other topic appear to be the same problem with the field being read only. I'll be looking into fixing this today as it should be a relatively simple fix.


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 to join the conversation.

7 years 5 months ago #288353 by nant

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.237 seconds

Facebook Twitter LinkedIn