Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • giuse74 Friend
    #192480

    How to insert a checkbox input type with required value in a ja quick contact module?

    Thanks.

    Saguaros Moderator
    #513562

    Hi giuse74,

    In order to customize this module, you can copy ‘default.php‘ file in folder of this module modulesmod_jaquickcontacttmpl

    To: templatesja_template_namehtmlmod_jaquickcontact folder

    then custom the default.php file in template folder as you wish.

    Under the <form> tag, you may need to add:


    <li class="<?php echo $params->get('moduleclass_sfx','')?>wide">
    <div class="<?php echo $params->get('moduleclass_sfx','')?> input-box">
    <input type="checkbox" name="term_required" id="term_required" value="1" />
    <label for="term_required">
    <?php echo JText::_( 'TERM_REQUIRED' ); ?>
    </label>
    </div>
    </li>

    In bottom of this file, add this JS code:


    if($('term_required').checked == false){
    $('term_required').getParent('li').addClass('error');
    ck = false;
    }
    else
    {
    $('term_required').getParent('li').removeClass('error');
    }

    It must be confirmed that this is custom work and you should hire a developer to get this done for you.

    giuse74 Friend
    #513716

    Thank you very much, it works fine!!!:)

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

This topic contains 3 replies, has 2 voices, and was last updated by  giuse74 10 years, 12 months ago.

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