Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Path Finder LifeRay
<aui:button type="reset"> is available?
October 11, 2012 9:20 PM
Answer

Path Finder LifeRay

Rank: Expert

Posts: 262

Join Date: September 18, 2009

Recent Posts

Hi all,
I am working on 6.1 GA2 application. In my app I have a requirement that when I click on a button in a form, the total form should be cleared say like clear button.

I tried with
1<aui:button type="reset"/>

But I came to know that there is no reset type aui button.
after that I tried with
1<aui:button type="clear" onClick="this.form.reset()"/>

But it also dn't work, as after clicking this button the form reloading with the last used values.

Is there any other way to clear the form using aui

I tried with javascript also like
1document.form.field.value

it is showing document.form is invalid or semi colon missing

Any pointers would be helpful

Thanks,
Path Finder
pratty M
RE: <aui:button type="reset"> is available?
September 10, 2014 12:15 AM
Answer

pratty M

Rank: Regular Member

Posts: 112

Join Date: February 5, 2014

Recent Posts

hey,

I want to do the exact same thing. Can you help ?