Forums

Home » Alloy UI » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Kaushik Sahoo
Alloy UI form validation tag not working
May 18, 2012 4:25 AM
Answer

Kaushik Sahoo

Rank: New Member

Posts: 3

Join Date: May 17, 2012

Recent Posts

I have created a aui form, and added validation for input, but it doesn't work, Here is my code:-

1
2<aui:form action="<%=addCustomerURL %>" method="post">
3    <aui:input inlineField="true" inlineLabel="left" label="Customer Name" showRequiredLabel="false"
4        name="custName" type="text">
5        <aui:validator name="required" />   
6    </aui:input>
7    <aui:button type="submit" value="Add" />
8</aui:form>


Am I doing anything wrong?
Please help.
Thanks.
manasa chandri
RE: Alloy UI form validation tag not working
May 18, 2012 5:18 AM
Answer

manasa chandri

Rank: Regular Member

Posts: 141

Join Date: September 27, 2010

Recent Posts

Hi Kaushik Sahoo,

In <aui:form > tag i did int wrote the form name and id.
example: <aui:form name="fm" id="fm" >--</aui:form>

Thanks & Regards,
Manasa.chandri.
Kaushik Sahoo
RE: Alloy UI form validation tag not working
May 18, 2012 5:30 AM
Answer

Kaushik Sahoo

Rank: New Member

Posts: 3

Join Date: May 17, 2012

Recent Posts

Exactly. Validation stopped working only when I added another form in an included page. When I added 'name' attribute to each forms it started working again.
asif aftab
RE: Alloy UI form validation tag not working
September 7, 2014 9:41 PM
Answer

asif aftab

Rank: Junior Member

Posts: 82

Join Date: September 2, 2013

Recent Posts

In my case some time aui validation is working and some time not.
I added this line in portlet.xml, may be this is helpful.
<init-param>
<name>add-process-action-error-action</name>
<value>false</value>
</init-param>