Skip to Content Skip to Menu

Auto Populate Third Party Component's Form Using Substitution or Query?

  • mhs_cb
  • mhs_cb
  • OFFLINE
  • Posts: 53
  • Thanks: 0
  • Karma: 0
10 years 3 months ago #247556 by mhs_cb
I have a third party component that my users use to submit support tickets. This component allows me to have custom fields as part of it's form being submitted.

I would like to auto populate a text field within that form being submitted with a CB Custom field that I have created within the CB user profile of the logged in user (e.g. "cb_companyname" being the company that the user works for).

I'm assuming I can use either CB Substitution or a database query to get what I need? How would I do this?

I'm also assuming that I would have to modify this component's form in order to autopopulate that text field with that CB value? Possibly making it a read-only field with the default value being the CB value?

How do I do this?

In my search for an answer, I found this link but not sure if it will help, as I'm not using RSForm: www.rsjoomla.com/support/documentation/view-article/371-autopopulate-a-field-from-community-builder.html

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 3 months ago #247569 by krileon
Your extension would need to integrate with CB to allow for that. Even then you'll need to ask the developers of your extension as we did not develop it I can't advise you on its usage.


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.

  • mhs_cb
  • mhs_cb
  • OFFLINE
  • Posts: 53
  • Thanks: 0
  • Karma: 0
10 years 3 months ago #247571 by mhs_cb
Ok. Thanks, I will ask them.

Is it possible to use the CB Substitution to populate a form's text field, that is within the Joomla framework? Or do I need to query the database directly?

Has anyone populated a form using CB Substitutions?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago #247620 by krileon
Substitutions can only be used where the API is directly integrated. So no you can't use them anywhere. Your extension would need to specifically pass the value through CBs substitution API. A direct database query can also work if you want the raw value of a field.


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