Creating online form with fields filled up with membership details

  • bumble
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 8 months ago #136552 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.

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

More
3 years 8 months ago #136557 by Tuan Pham Ngoc
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

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

  • bumble
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 8 months ago #136571 by bumble
Can I use BreezingForms or Balbooa Forms?
Any guidance on how to integrate the fields into these extensions?

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

More
3 years 8 months ago #136572 by Tuan Pham Ngoc
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

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

  • bumble
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 8 months ago #136915 by bumble
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);

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

More
3 years 8 months ago #136916 by Tuan Pham Ngoc
The SQL query should be changed to:

$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
  • Senior Member
More
3 years 8 months ago #136917 by bumble
Or is there a way to pull & display the member's information in an article/module?
Eg. First Name: [first_name]

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

More
3 years 8 months ago #136926 by Tuan Pham Ngoc
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

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

  • bumble
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 8 months ago #136942 by bumble
It works! It works!
Thank you so much for your help!

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

More
3 years 8 months ago #136950 by Tuan Pham Ngoc
Great. Happy to hear that and thanks for confirming

Tuan

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