Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jagir Buch
Validate Custom Attribute
May 16, 2014 5:30 AM
Answer

Jagir Buch

Rank: New Member

Posts: 11

Join Date: March 27, 2014

Recent Posts

Hi All,

I want to validate custom attribute taken in Registration form
is it possible?
Jeffrey Handa
RE: Validate Custom Attribute
May 16, 2014 9:07 AM
Answer

Jeffrey Handa

LIFERAY STAFF

Rank: Liferay Master

Posts: 501

Join Date: December 1, 2008

Recent Posts

Hi Jagir,

Are you using <liferay-ui:custom-attribute> tag on your registration form? To perform validation on the UI I think you'd have to replace the tag with your own code. If you're using your own front end code you might need to do a little work to ensure your form data gets processed correctly on the backend.

To perform validation on the back end you could use a Service Wrapper that wraps the addValue method in the ExpandoValueLocalService.
Jagir Buch
RE: Validate Custom Attribute
May 18, 2014 9:35 PM
Answer

Jagir Buch

Rank: New Member

Posts: 11

Join Date: March 27, 2014

Recent Posts

Yes sir , I am using <liferay-ui:custom-attribute> tag in "create_account.jsp" page.
By using hook i am trying to modify create_account.jsp page.
In this page i had added one custom field but now i want to validate that field like , only numeric value can be entered

How can i do this in hook?

Thank you sir
Achmed Tyrannus Albab
RE: Validate Custom Attribute
January 6, 2016 10:41 PM
Answer

Achmed Tyrannus Albab

Rank: Regular Member

Posts: 119

Join Date: March 5, 2010

Recent Posts

Jagir Buch:
Yes sir , I am using <liferay-ui:custom-attribute> tag in "create_account.jsp" page.
By using hook i am trying to modify create_account.jsp page.
In this page i had added one custom field but now i want to validate that field like , only numeric value can be entered

How can i do this in hook?

Thank you sir


Did you manage it mate? If so please do share.
Julien Mourad
RE: Validate Custom Attribute
January 7, 2016 7:20 AM
Answer

Julien Mourad

Rank: Junior Member

Posts: 78

Join Date: January 22, 2015

Recent Posts

You're probably gonna have to end up using alloy ui form validator. (replace YUI with AUI in your code)
Achmed Tyrannus Albab
RE: Validate Custom Attribute
January 7, 2016 6:32 PM
Answer

Achmed Tyrannus Albab

Rank: Regular Member

Posts: 119

Join Date: March 5, 2010

Recent Posts

Julien Mourad:
You're probably gonna have to end up using alloy ui form validator. (replace YUI with AUI in your code)


Thanks for that bro. I actually manage to use the ALLOYUI. But the issue i'm having is, with ALLOYUI the error message is on the top.
Whereas the standard error messages will be just beside the input fields. So how do i standardize this? What is the standard in doing this?
Nikhil Nishchal
RE: Validate Custom Attribute
February 1, 2016 12:11 AM
Answer

Nikhil Nishchal

Rank: Regular Member

Posts: 146

Join Date: June 21, 2012

Recent Posts

You may create your own form validatior rule for this form and use them in hook of create_user jsp.

http://alloyui.com/tutorials/form-validator/