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 Paul Handa
RE: Validate Custom Attribute
May 16, 2014 9:07 AM
Answer

Jeffrey Paul Handa

LIFERAY STAFF

Rank: Expert

Posts: 462

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