Hi! I started learning Liferay a couple of days ago, I'm developing a new portlet for a portal and a I have a Form in which I need a "Clear" button that resets all the fields of the form to their default values.
This is my form at the moment, the button "Clean" would call the action to reset the rest of the fields.
<aui:form action="<%= generateValues %>" method="post">
<aui:select name="depts" label="Depts."> ....... </aui:select>
<aui:select name="type" label="Type"> ....... </aui:select>
<aui:input label="pattern" name="padron" type="text"/>
<br/>
<aui:button type="submit" value="View information" />
<aui:button type="cancel" value="Clean" />
<br/>
</aui:form>
What's the best way of making this?
Thanks!
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.