0

Hi All - am using dbmasters formm@ailer for some time - no problems until recently. We require the engine size to be completed in cc. This has not been a problem until recently when we are often receiving a 'X' in the field. I'm stuck with Javascript.

PHP extract as follows

// General Variables
    $check_referrer="no";
    $referring_domains="";

// Default Error and Success Page Variables
    $error_page_title="Unable to submit - Incomplete Details";
    $error_page_text="Please use your browser's back button to return to the * web filing system and complete the required details.";
    $thanks_page_title="Your Proposal Has Been Forwarded To * - Thank you";
    $thanks_page_text="Please use the back button on your browser";

// options to use if hidden field "config" has a value of 0
// recipient info
    $charset[0]="iso-8859-1";
    $tomail[0]="";
    $cc_tomail[0]="*.com";
    $bcc_tomail[0]="";
// Mail contents config
    $subject[0]="Client Enquiry";
    $reply_to_field[0]="";
    $reply_to_name[0]="";
    $required_fields[0]="EngineSize";
    $required_email_fields[0]="";
    $attachment_fields[0]="";
    $return_ip[0]="";
    $mail_intro[0]="";
    $mail_fields[0]="Retailer_Code,Title,FirstName,Surname,TelephoneNumber,VehicleMake,VehicleModel,EngineSize";
    $mail_type[0]="text";
    $mail_priority[0]="1";
// Send back to sender config
    $send_copy[0]="";
    $send_copy_format[0]="vert_table";
    $send_copy_fields[0]="";
    $send_copy_attachment_fields[0]="";
    $copy_subject[0]="";
    $copy_intro[0]="";
    $copy_from_email[0]="";
    $copy_from_name[0]="";
    $copy_tomail_field[0]="";
// Result options
    $header[0]="";
    $footer[0]="";
    $error_page[0]="";
    $thanks_page[0]="http://www.*.com";

Have tried to use this *.js file which is referred to in the HTML section

var validator = new FormValidator('example_form', [{
}, {
    name: 'EngineSize',
    display: 'min length',
    rules: 'min_length[4]'
        // Show the errors
    }
});

I'm out of my depth on Javascript so any input appreciated. THanks for looking.

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.