Moonsoft Software Solutions

translate -This field is required-

Started 24 Oct 2013 · 2 replies

  1. moon_1209
    Where can I put the translation for : This field is required.

    can't find it in de lang. files
  2. Moonsoft support
    Hi,

    Calcbuilder uses JQuery Validator plugin for forms. To change messages, you can go to Javascrit events in your calculator and in 'Executed in loaded page' tab write the following:

    CB.validator.messages.required = "Your new required message here!";

    You could also, if you need, change these default messages:

    required: "This field is required.",
    remote: "Please fix this field.",
    email: "Please enter a valid email address.",
    url: "Please enter a valid URL.",
    date: "Please enter a valid date.",
    dateISO: "Please enter a valid date (ISO).",
    number: "Please enter a valid number.",
    digits: "Please enter only digits.",
    creditcard: "Please enter a valid credit card number.",
    equalTo: "Please enter the same value again.",
    maxlength: CB.validator.format("Please enter no more than {0} characters."),
    minlength: CB.validator.format("Please enter at least {0} characters."),
    rangelength: CB.validator.format("Please enter a value between {0} and {1} characters long."),
    range: CB.validator.format("Please enter a value between {0} and {1}."),
    max: CB.validator.format("Please enter a value less than or equal to {0}."),
    min: CB.validator.format("Please enter a value greater than or equal to {0}.")


    Hope this helps, regards
  3. moon_1209
    Tnx

    for most of the other stuff I translate the lan. ini file

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket