Fórumok
How to do validations for aui auto fields in browser side
Gurumurthy Godlaveeti, módosítva 11 év-val korábban
How to do validations for aui auto fields in browser side
Regular Member Bejegyzések: 208 Csatlakozás dátuma: 2011.08.12. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: How to do validations for aui auto fields in browser side
Expert Bejegyzések: 329 Csatlakozás dátuma: 2011.02.10. Legújabb bejegyzések
Can you share the code for those fields?
Gurumurthy Godlaveeti, módosítva 11 év-val korábban
RE: How to do validations for aui auto fields in browser side
Regular Member Bejegyzések: 208 Csatlakozás dátuma: 2011.08.12. Legújabb bejegyzések
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 ?