Contacting Seller Form

Discussion in 'TemplateCodes' started by sbhkma, Apr 19, 2010.

  1. sbhkma Customer

    Is there a way to remove the "name" requirement in the "contact the owner" form? I only want email, msg and captcha.
  2. Mike-N-Tosh Owner

    This uses a javascript validation. If you do not want to require the name, then get rid of the part of the validation that checks for the name.
    Code:
    if (frm.name.value == '') {
    	alert("{/literal}{$smarty.const.LANG_JAVASCRIPT_PLEASE_ENTER} '{$smarty.const.LANG_YOUR_NAME}{literal}'.");
    	frm.name.focus();
    	return(false);
    }
    Comment that out, so that way if you decide later you DO want to validate a name you will still have it. To comment it out just put
    /* existing code ...if(blah.........
    ............. */

    Begin comment = /*
    End comment = */

Share This Page