Foren
How to do validations for aui auto fields in browser side
Gurumurthy Godlaveeti, geändert vor 11 Jahren.
How to do validations for aui auto fields in browser side
Regular Member Beiträge: 208 Beitrittsdatum: 12.08.11 Neueste Beiträge
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, geändert vor 11 Jahren.
RE: How to do validations for aui auto fields in browser side
Expert Beiträge: 329 Beitrittsdatum: 10.02.11 Neueste Beiträge
Can you share the code for those fields?
Gurumurthy Godlaveeti, geändert vor 11 Jahren.
RE: How to do validations for aui auto fields in browser side
Regular Member Beiträge: 208 Beitrittsdatum: 12.08.11 Neueste Beiträge
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 ?