Skip to Content Skip to Menu

Post to CB field from RSForm Pro

1 day 18 hours ago #340118 by wintercorn
Post to CB field from RSForm Pro was created by wintercorn
I'd like insert a value from a basic RSForm in to a CB field. It looks like this should work but it doesn't and RSForm themselves are also not sure. A search of the CB forum reveals nothing of use.

UPDATE `xxx_comprofiler` SET `user_id`='{global:userid}' WHERE `cb_upgradeinformation` = '{Upgrade_information:value}'

Any suggestions from anyone who has succeeded?

Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48734
  • Thanks: 8321
  • Karma: 1448
1 day 13 hours ago - 1 day 13 hours ago #340121 by krileon
Replied by krileon on topic Post to CB field from RSForm Pro
Your query is reversed. Your SET should be for your field and your WHERE should be for your user id. As is you may have incorrectly broke user records doing that. Run the below to fix your records (note this only needs to be ran once.. generally just run it in phpmyadmin).

Code:
UPDATE `xxx_comprofiler` SET `user_id` = `id`


Next adjust your query to the below.

Code:
UPDATE `xxx_comprofiler` SET `cb_upgradeinformation` = '{Upgrade_information:value}' WHERE `id` = '{global:userid}'


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: 1 day 13 hours ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum