掲示板

How to do validations for aui auto fields in browser side

thumbnail
11年前 に Gurumurthy Godlaveeti によって更新されました。

How to do validations for aui auto fields in browser side

Regular Member 投稿: 208 参加年月日: 11/08/12 最新の投稿
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
thumbnail
11年前 に Prakash Khanchandani によって更新されました。

RE: How to do validations for aui auto fields in browser side

Expert 投稿: 329 参加年月日: 11/02/10 最新の投稿
Can you share the code for those fields?
thumbnail
11年前 に Gurumurthy Godlaveeti によって更新されました。

RE: How to do validations for aui auto fields in browser side

Regular Member 投稿: 208 参加年月日: 11/08/12 最新の投稿
As of now


<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 &gt; 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 ?