Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: aui:validator not working on liferay 7.3.2
Hi Everyone,I migrate liferay from 7.2.1 to 7.3.2, i found that aui:validator is not working. The form is submitting even the code is writing for validation with aui:validator. Can someone please suggest how should i need to change the code for that. Thank you
<aui:input label="teacher.firstname" disabled="${disabledInput }" name="firstName" type="text" >
<aui:validator name="required"/>
</aui:input>
<aui:input label="teacher.firstname" disabled="${disabledInput }" name="firstName" type="text" >
<aui:validator name="required"/>
</aui:input>
I am just guessing here, but jQuery was disabled in Liferay 7.3 and you need to explicitly enable it. Do you get any Javascript errors? You can try to enable jQuery in System Settings → Third Party → jQuery and test if it makes a difference.
Hi Christoph,
I enable jquery as per your suggestion and the vaildator is working after that. Thank you for your response.
I enable jquery as per your suggestion and the vaildator is working after that. Thank you for your response.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™