Skip to Content Skip to Menu

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

CB Query Field Issue

  • philgsy
  • philgsy
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
8 years 9 months ago #276453 by philgsy
CB Query Field Issue was created by philgsy
I have a new website which I'm setting up and want users to pick an item from a query field during registration.

I have set up the table and the query and the items are showing in the list, when when submitting the form the item is being ignored and nothing is being saved in the users profile with their selection - it is being left as 'NULL'



Joomla: 3.4.8
CB: 2.0.12
QueryPlugin: 4.0.5
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
8 years 9 months ago #276466 by krileon
Replied by krileon on topic CB Query Field Issue
What are the values of the select field? Sounds like you could have invalid characters or something of the sort trying to be used as values, which are causing the PHP side validation of those values to fail as it won't allow you to store options that don't exist. Please provide a screenshot of your CB Query Field parameters as well.


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.

  • philgsy
  • philgsy
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
8 years 9 months ago #276469 by philgsy
Replied by philgsy on topic CB Query Field Issue
It only returns the ID & name from a table and nothing particularly complex in there.

QUERY
SELECT `id` as 'charityid', `name` as 'charity' FROM `charities`

Example of results
1, Example 1
2, Example 2
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
8 years 9 months ago #276471 by krileon
Replied by krileon on topic CB Query Field Issue
Try removing the AS statements and just using the below.

SELECT `id`, `name` FROM `charities`

Value Column: id
Label Column: name

If issue still persists enable debug mode and maximum error reporting in Joomla global configuration then attempt to save your profile to see if any fatal errors output.


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.

  • philgsy
  • philgsy
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
8 years 9 months ago #276475 by philgsy
Replied by philgsy on topic CB Query Field Issue
Tried with the settings and still nothing is being saved. I just get a green "Your settings have been saved" banner at the top of the profile after submitting the forum.
There is nothing in the debugging which is showing why its not being submitted.
If you need access to the admin panel I'm happy to provide credentials if required.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
8 years 9 months ago #276478 by krileon
Replied by krileon on topic CB Query Field Issue
Seams to be working fine in my tests. Please PM backend super administrator login credentials and will 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.

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

Moderators: beatnantkrileon
Powered by Kunena Forum