Foros de discusión
How to do validations for aui auto fields in browser side
Gurumurthy Godlaveeti, modificado hace 11 años.
How to do validations for aui auto fields in browser side
Regular Member Mensajes: 208 Fecha de incorporación: 12/08/11 Mensajes recientes
Hello Everybody ,
I am using Liferay auto fields as of now in LR6.0.6 . I have two fields and i want to do browser side validations also on those fields .
Is anybody have ideas to work out it ?
Thanks ,
Gurumurthy .G
I am using Liferay auto fields as of now in LR6.0.6 . I have two fields and i want to do browser side validations also on those fields .
Is anybody have ideas to work out it ?
Thanks ,
Gurumurthy .G
Prakash Khanchandani, modificado hace 11 años.
RE: How to do validations for aui auto fields in browser side
Expert Mensajes: 329 Fecha de incorporación: 10/02/11 Mensajes recientes
Can you share the code for those fields?
Gurumurthy Godlaveeti, modificado hace 11 años.
RE: How to do validations for aui auto fields in browser side
Regular Member Mensajes: 208 Fecha de incorporación: 12/08/11 Mensajes recientes
As of now
I have written the above code as of now , and now i want to get two <div>'s along with those auto fields every time . How it's possible ?
<div>
<aui:fieldset>
<div class="lfr-form-row lfr-form-row-inline">
<div class="row-fields">
<aui:input name="parentName" id="parentName" />
<aui:input name="parentEmailAddress" id="parentEmailAddress" />
</div>
</div>
</aui:fieldset>
</div>
<aui:script use="liferay-auto-fields">
try{
var autoFields=new Liferay.AutoFields({
contentBox: '#<portlet:namespace />parentDetails > fieldset',
fieldIndexes: '<portlet:namespace />parentDetailsIndexes',
}).render();
}catch(exception){
alert(exception);
}
</aui:script>
I have written the above code as of now , and now i want to get two <div>'s along with those auto fields every time . How it's possible ?