- Posts: 76
- Thank you received: 0
Creating online form with fields filled up with membership details
- bumble
- Topic Author
- Offline
- Senior Member
Less
More
3 years 9 months ago #136552
by bumble
Creating online form with fields filled up with membership details was created by bumble
Hi I would like to create an online form for registered members to fill up.
If they are already logged in, I would like their names & details filled up & submitted together with other form fields.
Can you advice how to do this? Thank you.
If they are already logged in, I would like their names & details filled up & submitted together with other form fields.
Can you advice how to do this? Thank you.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
3 years 9 months ago #136557
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Creating online form with fields filled up with membership details
Hello
You cannot do that with Membership Pro. You will need to:
- Find and use a Form extension to create the form
- Then customize the code of that extension to use data from Membership Pro to pre-fill form fields when users login and access to the form
Maybe our Payment Form extension could be a good candidate. Then we can help developing this integration (pre-fill form data) with the price about 70$
Regards,
Tuan
You cannot do that with Membership Pro. You will need to:
- Find and use a Form extension to create the form
- Then customize the code of that extension to use data from Membership Pro to pre-fill form fields when users login and access to the form
Maybe our Payment Form extension could be a good candidate. Then we can help developing this integration (pre-fill form data) with the price about 70$
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- bumble
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 0
3 years 9 months ago #136571
by bumble
Replied by bumble on topic Creating online form with fields filled up with membership details
Can I use BreezingForms or Balbooa Forms?
Any guidance on how to integrate the fields into these extensions?
Any guidance on how to integrate the fields into these extensions?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
3 years 9 months ago #136572
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Creating online form with fields filled up with membership details
I guess you can. But you will need to ask the developer of the extension to customize code for you to pre-fill data from Membership Pro
Tell the developer to look at data from #__osmembership_subscribers table and they should know what to do
Tuan
Tell the developer to look at data from #__osmembership_subscribers table and they should know what to do
Tuan
Please Log in or Create an account to join the conversation.
- bumble
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 0
3 years 8 months ago #136915
by bumble
Replied by bumble on topic Creating online form with fields filled up with membership details
Hi Tuan,
Am trying to use Crosstec BreezingForms...
Working with the developer & he has asked me to add this code, but it has not been successful. Maybe you can shine some light on what we are doing wrong? Thank you for your help!
CODE:
$this->execPieceByName('ff_InitLib');
$db = JFactory::getDbo();
$db->setQuery("Select * From #__osmembership_subscribers Where membership_id = " . $db->quote(JFactory::getUser()->get('id')));
$subscriber = $db->loadObject();
print_r($subscriber);
exit;
ff_setValue('last_name', $subscriber->last_name);
ff_setValue('first_name', $subscriber->first_name);
ff_setValue('membership_id', $subscriber->membership_id);
Am trying to use Crosstec BreezingForms...
Working with the developer & he has asked me to add this code, but it has not been successful. Maybe you can shine some light on what we are doing wrong? Thank you for your help!
CODE:
$this->execPieceByName('ff_InitLib');
$db = JFactory::getDbo();
$db->setQuery("Select * From #__osmembership_subscribers Where membership_id = " . $db->quote(JFactory::getUser()->get('id')));
$subscriber = $db->loadObject();
print_r($subscriber);
exit;
ff_setValue('last_name', $subscriber->last_name);
ff_setValue('first_name', $subscriber->first_name);
ff_setValue('membership_id', $subscriber->membership_id);
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
3 years 8 months ago #136916
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Creating online form with fields filled up with membership details
The SQL query should be changed to:
$db->setQuery("Select * From #__osmembership_subscribers Where user_id = " . $db->quote(JFactory::getUser()->get('id')));
$db->setQuery("Select * From #__osmembership_subscribers Where user_id = " . $db->quote(JFactory::getUser()->get('id')));
Please Log in or Create an account to join the conversation.
- bumble
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 0
3 years 8 months ago #136917
by bumble
Replied by bumble on topic Creating online form with fields filled up with membership details
Or is there a way to pull & display the member's information in an article/module?
Eg. First Name: [first_name]
Eg. First Name: [first_name]
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
3 years 8 months ago #136926
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Creating online form with fields filled up with membership details
For display member information on an article, you can go to Extensions -> Plugins, find and enable Content - Membership Tags
Then on the article, to display value of a custom field of that member, just use the syntax [NAME_OF_FIELD_IN_UPPERCASE]
For example, [FIRST_NAME]
[LAST_NAME]
...
Please try that and let me know if it works
Tuan
Then on the article, to display value of a custom field of that member, just use the syntax [NAME_OF_FIELD_IN_UPPERCASE]
For example, [FIRST_NAME]
[LAST_NAME]
...
Please try that and let me know if it works
Tuan
Please Log in or Create an account to join the conversation.
- bumble
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 0
3 years 8 months ago #136942
by bumble
Replied by bumble on topic Creating online form with fields filled up with membership details
It works! It works!
Thank you so much for your help!
Thank you so much for your help!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
3 years 8 months ago #136950
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Creating online form with fields filled up with membership details
Great. Happy to hear that and thanks for confirming
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.