Skip to Content Skip to Menu

Fields in additional tabs do not write to the database

10 years 5 months ago #245189 by PattyHultquist
I have 3 different types of users on this site. Regular registered users create an account using VirtueMart. There are also Distributors which create an account at precision-vision.biz/Create-an-account.html?grp=dist or Professionals create an account at precision-vision.biz/Create-an-account.html?grp=pro .

I'm using CB Conditional to display the appropriate tabs depending on the URL parameter which works fine. Everything was working fine with registering the info on all the tabs for each user type until recently. Now none of the field info on the additional tabs is written to the database. I've checked through all the CB Tools and ensured there are no database problems. Distributor registrations show no errors even with maximum debug mode on. In error reporting, upon filling out all fields and clicking Register, the SQL statements shown do not show an insert statement for CB at all, only the core joomla user fields being inserted.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245225 by krileon
Typically means you've conditioned the same tabs/fields multiple times. When you do this only the last conditional to apply matters. PHP will only use the last one. So the values are likely being removed by the last conditional being applied. You'll need to review your conditionals carefully. To confirm this is your issue simply disable CB Conditional and see if data saves.


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.

10 years 5 months ago #245283 by PattyHultquist
Replied by PattyHultquist on topic Fields in additional tabs do not write to the database
I disabled the conditionals plugin and the fields did then save. But I can't determine what is wrong with my conditions. I've attached a screen grab for each tab. I want one to appear if the URL parameter equals 'pro' and have it not appear if it's not. Same thing for 'dist'. I only have tab conditions setup, no field conditions. The tabs appear as I want them to for registration, but they don't save the data.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245288 by krileon
You're conditioning off [get_PARAM]. Get comes from $_GET, which is from the URL. When you save it's posting to an internal URL, which will not have your [get_grp]. In short your conditional is impossible to maintain on save and is only applicable for Profile View.


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: PattyHultquist

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

Moderators: beatnantkrileon
Powered by Kunena Forum