Ola, pessoal
estou fazendo um formulario com alguns itens obrigatorio tanto o preenchimento quanto o tamanho minimo.
Acontece que quando nao se coloca a informação de acordo com a regra que eu estabeleci, a mensagem aparece em ingles por exemplo:
campo nome tem que ter no minimo 6 caracter e a pessoa nao coloca isto aparece assim:
"Please enter at least 6 characters in the "nome do contato" field"
eu preciso urgente resolver isto para que esta mensagem dizendo que tem que ter no minimo 6 caracteres seja em portugues
Onde eu posso mudar isto
estou usando o front page 2003
para quem quizer ver o que estou dizendo é so acessar
http://www.audiconta...009_contato.htm
Obrigado
MSC
Validar Campo Em Portugues (urgente)
Started By masaca, 10/08/2009, 13:27
2 replies to this topic
#2
Posted 10/08/2009, 19:20
Olá Masaca...isso não tem jeito.
O ideal é você usar um form de uma outra linguagem como : php cgi, etc.
Aqui no fórum, tem salas que podem te ajudar na instalações desses outros scripts e ficar contente com o resultado.
Abraços
O ideal é você usar um form de uma outra linguagem como : php cgi, etc.
Aqui no fórum, tem salas que podem te ajudar na instalações desses outros scripts e ficar contente com o resultado.
Abraços
#3
Posted 10/08/2009, 19:34
No seu codigo tem todo o javascript, la as mensagens estao em ingles, é só mudar direto nele, porem pra enviar o email vc vai ter usar uma linguagem web dinamica, vc nao vai conseguir apenas com html ok
Acho mais bonito usando jQuery com o plugin validate q da pra personalizar as mensagens
http://thiagobelem.n...com-jquery-386/
http://bassistance.d...gin-validation/
<script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.Nome.value == "")
{
alert("Please enter a value for the \"Nome do Contato\" field.");
theForm.Nome.focus();
return (false);
}
if (theForm.Nome.value.length < 6)
{
alert("Please enter at least 6 characters in the \"Nome do Contato\" field.");
theForm.Nome.focus();
return (false);
}
var chkVal = theForm.Nome.value;
var prsVal = chkVal;
if (chkVal != "" && !(prsVal > "6"))
{
alert("Please enter a value greater than \"6\" in the \"Nome do Contato\" field.");
theForm.Nome.focus();
return (false);
}
if (theForm.e_mail.value == "")
{
alert("Please enter a value for the \"e-mail do contato\" field.");
theForm.e_mail.focus();
return (false);
}
if (theForm.e_mail.value.length < 6)
{
alert("Please enter at least 6 characters in the \"e-mail do contato\" field.");
theForm.e_mail.focus();
return (false);
}
var chkVal = theForm.e_mail.value;
var prsVal = chkVal;
if (chkVal != "" && !(prsVal > "6"))
{
alert("Please enter a value greater than \"6\" in the \"e-mail do contato\" field.");
theForm.e_mail.focus();
return (false);
}
if (theForm.Telef.value == "")
{
alert("Please enter a value for the \"Telef\" field.");
theForm.Telef.focus();
return (false);
}
if (theForm.Telef.value.length < 8)
{
alert("Please enter at least 8 characters in the \"Telef\" field.");
theForm.Telef.focus();
return (false);
}
var checkOK = "0123456789-";
var checkStr = theForm.Telef.value;
var allValid = true;
var validGroups = true;
var decPoints = 0;
var allNum = "";
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
allNum += ch;
}
if (!allValid)
{
alert("Please enter only digit characters in the \"Telef\" field.");
theForm.Telef.focus();
return (false);
}
if (theForm.Motivo_do_Contato.selectedIndex < 0)
{
alert("Please select one of the \"Motivo_do_Contato\" options.");
theForm.Motivo_do_Contato.focus();
return (false);
}
if (theForm.Qual_Retorno.selectedIndex < 0)
{
alert("Please select one of the \"Qual_Retorno\" options.");
theForm.Qual_Retorno.focus();
return (false);
}
return (true);
}
//--></script>Acho mais bonito usando jQuery com o plugin validate q da pra personalizar as mensagens
http://thiagobelem.n...com-jquery-386/
http://bassistance.d...gin-validation/
Edição feita por: Camarão, 10/08/2009, 19:39.
<?php echo("Guilherme Marques Eloi"); ?>
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)










