Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
chirag @ India
web form validation is not working ???
26 de Março de 2013 00:44
Resposta

chirag @ India

Ranking: Regular Member

Mensagens: 129

Data de entrada: 20 de Dezembro de 2011

Mensagens recentes

I try to implement client side validation using java script ,but it is not validate form input data in web form portlet in liferay

what i do is :

First In Portlet-ext.porperties i write this line to enable java script and then restart server

validation.script.enabled true

After Web-form configuration i right simple script

== Mobile No ==

var alphaExp = /^[a-zA-Z]$/;
if(currentFieldValue.match(alphaExp)) {
return false;
}else {
return true;
}
== Email Id ==
if (currentFieldValue.indexOf("@")>=0)
return true;
else return false;

then publish,but this is can't validate from data and form successfully sended!!

help me out...
Muradali Hasan
RE: web form validation is not working ???
19 de Maio de 2013 22:44
Resposta

Muradali Hasan

Ranking: Junior Member

Mensagens: 83

Data de entrada: 26 de Julho de 2010

Mensagens recentes

Hi Chirag,

May be you are using form submit object which submit your form.

you can do one think change submit type to button and call java script function on onclick() after validating your data submit form through java script.

document.<formname>.submit();
Timo Kurowski
RE: web form validation is not working ???
27 de Junho de 2013 06:12
Resposta

Timo Kurowski

Ranking: Regular Member

Mensagens: 240

Data de entrada: 24 de Junho de 2013

Mensagens recentes

I have the exact same Problem. Cant change the Button tho, since its a downloaded portlet that sits on the server where i cant reach its code. (Translation is horrible, too).
Edwin Buising
RE: web form validation is not working ???
23 de Julho de 2013 05:42
Resposta

Edwin Buising

Ranking: New Member

Mensagens: 2

Data de entrada: 5 de Fevereiro de 2013

Mensagens recentes

I have the same issue. Any developments?
Neetu Mishra
RE: web form validation is not working ???
23 de Agosto de 2013 07:25
Resposta

Neetu Mishra

Ranking: Junior Member

Mensagens: 76

Data de entrada: 21 de Maio de 2012

Mensagens recentes

Hi All,

Please refer the below link:
http://www.liferay.com/community/forums/-/message_boards/message/15848474


Regards,
Neetu