Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • bwebdesign Friend
    #203397

    Hello,

    I would like to add a checkboxfield to the contact company form. How can i do that?

    Thanks,
    Mike

    pavit Moderator
    #557872

    Hi

    Try to look at the Joomla forum HERE

    bwebdesign Friend
    #557903

    I have tried it but now i get this error:
    JForm::getInstance could not load file

    This is wat i have edited:
    <field name=”contact_VLOER”
    type=”list”
    description=”COM_CONTACT_VLOER”
    label=”COM_CONTACT_FIELD_PARAMS_VLOER”
    >
    <option value=””>JGLOBAL_USE_GLOBAL</option>
    <option value=”0″>JHIDE</option>
    <option value=”1″>JSHOW</option>
    </field>
    <field name=”contact_ZONWERING”
    type=”list”
    description=”COM_CONTACT_VLOER”
    label=”COM_CONTACT_FIELD_VLOER”
    >
    <option value=””>JGLOBAL_USE_GLOBAL</option>
    <option value=”0″>JHIDE</option>
    <option value=”1″>JSHOW</option>
    </field> <— In contact.xml (in components–>com_contact

    Now i can select to show that to fields.
    $mailfrom = $app->get(‘mailfrom’);
    $fromname = $app->get(‘fromname’);
    $sitename = $app->get(‘sitename’);

    $name = $data[‘contact_name’];
    $email = JStringPunycode::emailToPunycode($data[‘contact_email’]);
    $subject = $data[‘contact_subject’];
    $vloer = $data[‘contact_VLOER’];
    $zonwering = $data[‘contact_ZONWERING’];
    $body = “Checkbox #:”$vloer $zonwering. “/r/n” .$data[‘contact_message’]; <– So that they would be send to. in components–>com_contact–>controllers–>contact.php

    But it still don’t get a checkboxfield. and i don’t have a contactpage anymore.
    I want a checkboxfield like this:
    Where do you life?
    USA
    Netherlands
    Germany

    pavit Moderator
    #557959

    Hi

    Maybe you can use an external resource to customize your contact form , take a look HERE

    bwebdesign Friend
    #557960

    I know that that would be a solution but i prefer to use this one because of the layout of the page. And i would like to use that layout. is that possible?

    pavit Moderator
    #557961

    <blockquote>is that possible?</blockquote>

    Everything is possible , Try this other resource too maybe matching 2 informations will solve it

    bwebdesign Friend
    #558034

    I can see the form again only not the checkboxfield

    pavit Moderator
    #558064

    <em>@bwebdesign 456779 wrote:</em><blockquote>I can see the form again only not the checkboxfield</blockquote>

    I think you can hire a developer to customize your form or adopt as final solution an external component as suggested above

    bwebdesign Friend
    #558118

    I solved it! I made my own form and then i copied the company page. I removed the form and than pasted my own form in it. The only problem is that i can’t edit it in Joomla but that isn’t a big issue for me! Thanks for the support!

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 2 voices, and was last updated by  bwebdesign 9 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum