Warning errors

addick 04 May, 2009
Hi all,

I am using Joomla 1.5.9 with v3.1 RC4.11
I have created a simple form through the "form wizard" but am getting php warnings/errors at the top and bottom of the article page.
I have left the link open to the page, it is http://www.thecostablancapropertyguide.com/index.php/omm-spain

The form stills works to some degree - it is sending me the Name, email address and Tel. Number fields.
However, although i checked a few of the boxes for each section, I just get the following info :

Please check one or more of the following boxes to receive further information.
Onshore/Offshore Investment, Maximising Pension Income, Creating Income From Property, Releasing Capital From Property Onshore/Offshore Investment
Onshore/Offshore Investment, Maximising Pension Income, Creating Income From Property, Releasing Capital From Property Maximising Pension Income
Onshore/Offshore Investment, Maximising Pension Income, Creating Income From Property, Releasing Capital From Property Creating Income From Property
Onshore/Offshore Investment, Maximising Pension Income, Creating Income From Property, Releasing Capital From Property Releasing Capital From Property
Onshore/Offshore Investment, Maximising Pension Income, Creating Income From Property, Releasing Capital From Property Maximising Income From Savings
Onshore/Offshore Investment, Maximising Pension Income, Creating Income From Property, Releasing Capital From Property Guaranteed Investment Bonds
Onshore/Offshore Investment, Maximising Pension Income, Creating Income From Property, Releasing Capital From Property 3rd Party Portfolio Management


Please tick one of more of the boxes to let us know what Insurance Service you require.
Motor, House/Building And Contents, Medical/Health And Travel, Pet Cover Motor
Motor, House/Building And Contents, Medical/Health And Travel, Pet Cover House/Building And Contents
Motor, House/Building And Contents, Medical/Health And Travel, Pet Cover Medical/Health And Travel
Motor, House/Building And Contents, Medical/Health And Travel, Pet Cover Pet Cover
Motor, House/Building And Contents, Medical/Health And Travel, Pet Cover Funeral/Burial Plans
Motor, House/Building And Contents, Medical/Health And Travel, Pet Cover Yacht/Boat
Motor, House/Building And Contents, Medical/Health And Travel, Pet Cover Office/Commercial
Motor, House/Building And Contents, Medical/Health And Travel, Pet Cover Professional Liability


Any help would be much appreciated.
Thanks again and I look forward to buying the licence when all is sorted.

Richard
GreyHead 04 May, 2009
Hi Richard,

It looks as though the ChronoForms Component and Plugin are mismatched. I suggest that you upgrade both to the RC5.0 which came out yesterday.

You can install the new component over the existing one, better to unistall the old Plugin before installing the new one.

I'm not sure if the checkbox problem is fixed in the new vesion. if it isn't post again and I'll tell you what to do.

Bob
addick 04 May, 2009
Hi Bob

Thanks for your reply.
I upgraded both component and plugin which has fixed the php warnings. Thanks.
It appears though to have mis-aligned the field boxes for name, e-mail address and tel no. The "Load Chronoforms CSS/JS Files?" is checked to Yes.

I am also still getting the same problem with not receiving the specific checkbox info, as i mentioned earlier in my post.
GreyHead 05 May, 2009
Hi Ricahrd,

For a checkbox group:
[list]
  • In the Form HTML give all the members of the checkbox group the same array name like name='my_checkboxes[]'
  • Set 'useful' values for each checkbox to give you the results like value='Doors', value='Windows'
  • In the Email Template set the checkbox group to Title: {field_name} like "I would like replacement: {my_checkboxes}" Note that the name here does not include the []
  • [/list]
    Bob
    addick 05 May, 2009
    Hi Bob
    Thanks once again for your prompt response.

    In the Form HTML give all the members of the checkbox group the same array name like name='my_checkboxes[]' ( DONE )

    Set 'useful' values for each checkbox to give you the results like value='Doors', value='Windows' - ( I did not change any of the values as i want the person receiving the e-mail to know that the "enquirer" has chosen a specific service - i.e Onshore/Offshore investment ( <input value="Onshore/Offshore Investment ) Or am i missing something here...?!

    In the Email Template set the checkbox group to Title: {field_name} like "I would like replacement: {my_checkboxes}" Note that the name here does not include the [] - Sorry but not sure how to proceed with this one. Not sure where to put the "I would like further info on : {my_checkboxes} (onshore/offshore investments.. for e.g Any further help with this would be appreciated.

    Below is my e-mail template :

    <DIV class=form_item>
    <DIV class="form_element cf_textbox"><LABEL class=cf_label>Name</LABEL> <SPAN>{text_0}</SPAN> </DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_textbox"><LABEL class=cf_label>E-Mail Address</LABEL> <SPAN>{text_1}</SPAN> </DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_textbox"><LABEL class=cf_label>Telephone Number</LABEL> <SPAN>{text_2}</SPAN> </DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_checkbox"><LABEL class=cf_label>Please check one or more of the following boxes to receive further information. </LABEL>
    <DIV class=float_left><SPAN>{check0}</SPAN> <LABEL class=check_label for=check00>Onshore/Offshore Investment</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check01>Maximising Pension Income</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check02>Creating Income From Property</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check03>Releasing Capital From Property</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check04>Maximising Income From Savings</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check05>Guaranteed Investment Bonds</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check06>3rd Party Portfolio Management</LABEL> <BR></DIV></DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_checkbox"><LABEL class=cf_label>Please tick one of more of the boxes to let us know what Insurance Service you require. </LABEL>
    <DIV class=float_left><SPAN>{check1}</SPAN> <LABEL class=check_label for=check10>Motor</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check11>House/Building And Contents</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check12>Medical/Health And Travel</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check13>Pet Cover</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check14>Funeral/Burial Plans</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check15>Yacht/Boat</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check16>Office/Commercial</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check17>Professional Liability</LABEL> <BR></DIV></DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_button"> </DIV>
    <DIV class=clear> </DIV></DIV>

    Thanks again

    Richard
    Max_admin 06 May, 2009
    Hi Richard,

    for example, replace all this code:
    
    <SPAN>{check0}</SPAN> <LABEL class=check_label for=check00>Onshore/Offshore Investment</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check01>Maximising Pension Income</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check02>Creating Income From Property</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check03>Releasing Capital From Property</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check04>Maximising Income From Savings</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check05>Guaranteed Investment Bonds</LABEL> <BR><SPAN>{check0}</SPAN> <LABEL class=check_label for=check06>3rd Party Portfolio Management</LABEL>


    by

    <SPAN>{check0}</SPAN>



    can I know how did you create your form ? did you use the wizard ? did you drag and dropped and the elements then clicked the "save" icon in the wizard or did something else ?

    Regards
    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    addick 06 May, 2009
    Hi Max

    Thanks for your reply.
    I originally did the form in Dreamweaver but was having problems getting it to work. So i switched to the Form Wizard. As far as I can remember I just dragged and dropped the elements and saved.

    I changed the code as you suggested.
    My E-mail template now looks like this :

    <DIV class=form_item>
    <DIV class="form_element cf_textbox"><LABEL class=cf_label>Name</LABEL> <SPAN>{text_0}</SPAN> </DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_textbox"><LABEL class=cf_label>E-Mail Address</LABEL> <SPAN>{text_1}</SPAN> </DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_textbox"><LABEL class=cf_label>Telephone Number</LABEL> <SPAN>{text_2}</SPAN> </DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_checkbox"><LABEL class=cf_label>Please check one or more of the following boxes to receive further information. </LABEL>
    <DIV class=float_left> <SPAN>{check0}</SPAN> <BR></DIV></DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_checkbox"><LABEL class=cf_label>Please tick one of more of the boxes to let us know what Insurance Service you require. </LABEL>
    <DIV class=float_left><SPAN>{check1}</SPAN> <LABEL class=check_label for=check10>Motor</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check11>House/Building And Contents</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check12>Medical/Health And Travel</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check13>Pet Cover</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check14>Funeral/Burial Plans</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check15>Yacht/Boat</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check16>Office/Commercial</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check17>Professional Liability</LABEL> <BR></DIV></DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_button"> </DIV>
    <DIV class=clear> </DIV></DIV>

    When I fill in the form now and check for example the first box (from the first checkgroup list) and the first box from the second checkbox group I get the following results sent to my inbox.

    Name richard eastabrook

    E-Mail Address [email]info@thecostablancapropertyguide.com[/email]

    Telephone Number 0034 965 172 994

    Please check one or more of the following boxes to receive further information.
    {check0} Onshore/Offshore Investment
    {check0} Maximising Pension Income
    {check0} Creating Income From Property
    {check0} Releasing Capital From Property
    {check0} Maximising Income From Savings
    {check0} Guaranteed Investment Bonds
    {check0} 3rd Party Portfolio Management


    Please tick one of more of the boxes to let us know what Insurance Service you require.
    {check1} Motor
    {check1} House/Building And Contents
    {check1} Medical/Health And Travel
    {check1} Pet Cover
    {check1} Funeral/Burial Plans
    {check1} Yacht/Boat
    {check1} Office/Commercial
    {check1} Professional Liability



    Been on this for the last few days now and am starting to lose patience!! I don´t mind paying you or someone to complete this. I´m sure it´easy but I´m just not sure how to do it correctly.
    I need to pay for the licence to get the link removed so when i pay this is it possible i could pay a bit extra to have this done?

    I need to have the text fields line up correctly. At the moment the first three boxes are mis-aligned.
    I also need results sent to the inbox that would make sense to a person who just wants to know what the "enquirer" has said he wants further info on... i.e whether or not more info on onshore/offshore investments etc.

    Also a captcha form would be nice, but this I probably can do myself.

    The site link to the form is : http://www.thecostablancapropertyguide.com/index.php/omm-spain

    Thanks again.

    Richard
    GreyHead 06 May, 2009
    Hi Richard,

    Here's the relevant part of your Form HTML
    415
    416
    417 </div>
    418
    419 </div>
    420 <div class="clear"> </div>
    421</div>
    422
    423<div class="form_item">
    424 <div class="form_element cf_checkbox">
    425 <label class="cf_label">Please tick one of more of the boxes to let us know what Insurance Service you require. </label>
    426 <div class="float_left">
    427 <input value="Motor" title="" class="radio validate-one-required" id="check10" name="my_checkboxes[]" type="checkbox" />
    428 <label for="check10" class="check_label">Motor</label>
    429 <br />
    430
    431<input value="House/Building And Contents" title="" class="radio validate-one-required" id="check11" name="my_checkboxes[]" type="checkbox" />
    432 <label for="check11" class="check_label">House/Building And Contents</label>
    433 <br />
    434
    435<input value="Medical/Health And Travel" title="" class="radio validate-one-required" id="check12" name="my_checkboxes[]" type="checkbox" />
    436 <label for="check12" class="check_label">Medical/Health And Travel</label>
    437 <br />
    438
    439<input value="Pet Cover" title="" class="radio validate-one-required" id="check13" name="my_checkboxes[]" type="checkbox" />
    440 <label for="check13" class="check_label">Pet Cover</label>
    441 <br />
    442
    443<input value="Funeral/Burial Plans" title="" class="radio validate-one-required" id="check14" name="my_checkboxes[]" type="checkbox" />
    444 <label for="check14" class="check_label">Funeral/Burial Plans</label>
    445 <br />
    446
    447<input value="Yacht/Boat" title="" class="radio validate-one-required" id="check15" name="my_checkboxes[]" type="checkbox" />
    448 <label for="check15" class="check_label">Yacht/Boat</label>
    449 <br />
    450
    451<input value="Office/Commercial" title="" class="radio validate-one-required" id="check16" name="my_checkboxes[]" type="checkbox" />
    452 <label for="check16" class="check_label">Office/Commercial</label>
    453 <br />
    454
    455<input value="Professional Liability" title="" class="radio validate-one-required" id="check17" name="my_checkboxes[]" type="checkbox" />
    456 <label for="check17" class="check_label">Professional Liability</label>
    457 <br />
    458
    459
    460 </div>
    461
    462 </div>
    463 <div class="clear"> </div>
    464</div>
    This is all fine except that you've given both blocks the same name so, make the second block my_checkboxes2[] so that they can be distinguished.

    Then in your email template put:
    Further information: {my_checkboxes}
    Insurance Service: {my_checkboxes2}

    You must use the same field names in both places.

    Bob
    addick 06 May, 2009
    Hi Bob

    I am now receiving the correct information that was selected through the form. However, it is a little jumbled.
    For example I receive :

    Name Richard

    E-Mail Address [email]info@thecostablancapropertyguide.com[/email]

    Telephone Number 0034 965 172 996

    Further information: Onshore/Offshore Investment, Maximising Pension Income, Motor, House/Building And Contents
    Insurance Service:

    Please check one or more of the following boxes to receive further information.
    {check00} Onshore/Offshore Investment
    {check01} Maximising Pension Income
    {check02} Creating Income From Property
    {check03} Releasing Capital From Property
    {check04} Maximising Income From Savings
    {check05} Guaranteed Investment Bonds
    {check06} 3rd Party Portfolio Management

    Please tick one of more of the boxes to let us know what Insurance Service you require.

    {check10} Motor
    {check11} House/Building And Contents
    {check12} Medical/Health And Travel
    {check13} Pet Cover
    {check14} Funeral/Burial Plans
    {check15} Yacht/Boat
    {check16} Office/Commercial
    {check17} Professional Liability


    I believe therefore I have distinguished between the two blocks correctly.
    I believe though that I have not put the two lines below correctly witin the e-mail template.

    Further information: {my_checkboxes}
    Insurance Service: {my_checkboxes2}

    Here is a copy of the E-mail template :
    <DIV class=form_item>
    <DIV class="form_element cf_textbox"><LABEL class=cf_label>Name</LABEL> <SPAN>{text_0}</SPAN> </DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_textbox"><LABEL class=cf_label>E-Mail Address</LABEL> <SPAN>{text_1}</SPAN> </DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_textbox"><LABEL class=cf_label>Telephone Number</LABEL> <SPAN>{text_2}</SPAN> </DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_checkbox"><LABEL class=cf_label>Please check one or more of the following boxes to receive further information. </LABEL>
    <DIV class=float_left><SPAN>{check0}</SPAN> <BR></DIV></DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_checkbox"><LABEL class=cf_label>Please tick one of more of the boxes to let us know what Insurance Service you require. </LABEL>
    <DIV class=float_left><SPAN>{check1}</SPAN> <LABEL class=check_label for=check10>Motor</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check11>House/Building And Contents</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check12>Medical/Health And Travel</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check13>Pet Cover</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check14>Funeral/Burial Plans</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check15>Yacht/Boat</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check16>Office/Commercial</LABEL> <BR><SPAN>{check1}</SPAN> <LABEL class=check_label for=check17>Professional Liability</LABEL> <BR></DIV></DIV>
    <DIV class=clear> </DIV></DIV>
    <DIV class=form_item>
    <DIV class="form_element cf_button"> </DIV>
    <DIV class=clear> </DIV></DIV>


    Here is copy of the e-mail template with editor :

    Name {text_0}

    E-Mail Address {text_1}

    Telephone Number {text_2}


    Further information: {my_checkboxes}
    Insurance Service: {my_checkboxes2}



    Please check one or more of the following boxes to receive further information.
    {check00} Onshore/Offshore Investment
    {check01} Maximising Pension Income
    {check02} Creating Income From Property
    {check03} Releasing Capital From Property
    {check04} Maximising Income From Savings
    {check05} Guaranteed Investment Bonds
    {check06} 3rd Party Portfolio Management


    Please tick one of more of the boxes to let us know what Insurance Service you require.




    {check10} Motor
    {check11} House/Building And Contents
    {check12} Medical/Health And Travel
    {check13} Pet Cover
    {check14} Funeral/Burial Plans
    {check15} Yacht/Boat
    {check16} Office/Commercial
    {check17} Professional Liability


    Thanks for your patience..


    Richard
    GreyHead 06 May, 2009
    Hi Richard,

    Looks as though this piece is mostly working OK

    Further information: Onshore/Offshore Investment, Maximising Pension Income, Motor, House/Building And Contents
    Insurance Service:



    Most of the rest of your template is now junk - all the {check99} lines - and can be deleted.

    I'm guessing that the Insurance quote line is empty because you haven't changed the field names in the second block and the results should look something like

    Further information: Onshore/Offshore Investment, Maximising Pension Income
    Insurance Service: Motor, House/Building And Contents



    Bob
    addick 06 May, 2009
    Thanks Bob! All is working fine now after deleting all the "junk"!
    Problem now with Thank you message and a parse error, but shall create a new post for this.
    This topic is locked and no more replies can be posted.