Forums

Using Chronoform with CB1.2RC2

Lifeischoice 02 Oct, 2008
I will appreciate your help in creating the following scenario:

My goal is to have a form that is linked with cb1.2rc2 profile such that after login
1. subscriber can complete the form as part of CB profile
2. form is emailed to both subscriber and admin (or designated email)
3. form is part of cb profile tab

Thanks in advance...
Max_admin 02 Oct, 2008
Hi,

Assuming that your CB has the fields field1,field2...field5, make a new form with some fields and name some of them as field1...field5 too, now add to your form a hidden field called id and at the value="" attribute add this :


<?php $user = JFactory::getUser(); echo $user->id; ?>


this will load the id field with the logged in user's id, now at the DB connection tab in the admin area, enable it and choose the jos_comprofiler table, save teh form, now on form submit, the user's record will be updated with the form's data!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Lifeischoice 03 Oct, 2008
Thanks...I will try it and report back...I really appreciate your effort....
Lifeischoice 03 Oct, 2008
Not there yet....I followed the process outlined...however, when I submit the form, I get a blank screen and no date is added to the cb profile....
Max_admin 03 Oct, 2008
Can I see your form code and your CB table fields list ? can you take a screenshot of the CB table with phpmyadmin or something ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Lifeischoice 03 Oct, 2008
I have the form code, however, I don't know how to get the cb info you requested...if you don't mind let me know how to get it or I can pm you the login info to my site/with db access...either way will be greatly appreciated...thanks again...
Max_admin 03 Oct, 2008
do you have PHPmyadmin access ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 03 Oct, 2008
Ok, can you login there, open your database, find the jos_comprofiler table and click "structure" to see its fields then take a screenshot ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Lifeischoice 03 Oct, 2008
Thanks...both from teaching me how to do this and helping to take a look....now I know how..
Unable to send both here...attached cb info....I have sent a PM with form info
Max_admin 03 Oct, 2008
Hi, All I need to see now is the form HTML, you can put it here safely!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Lifeischoice 04 Oct, 2008
here is the form: (removed...because form is proprietery)
Max_admin 04 Oct, 2008
Hi lifeischoice, I see that you don't have any fields in your HTML with the same names as the CB table fields names!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Lifeischoice 04 Oct, 2008
Thanks...I am not sure I understood....what I was shooting for is for the information on the html form to be an "add on" to cb data (not to replace it)....however, I will add cb data to the form and test....
Max_admin 04 Oct, 2008
ok let me know after you test, but for the form to add data to some table, there must be some table fields ready to receive this data first!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Lifeischoice 04 Oct, 2008

ok let me know after you test, but for the form to add data to some table, there must be some table fields ready to receive this data first!

Cheers

Max



now I understand (i think?)....will it be the same to add the form fields to cb?
Max_admin 04 Oct, 2008
yes, just the form and the CB table should have some common fields to be populated with the form data!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Lifeischoice 10 Oct, 2008
sorry...I am not able to make it work...
Max_admin 10 Oct, 2008
show me your form code ? are you connected to the right table ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.