Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to get reset button to clear the required field red boxes on use

Avatar

Avatar
Validate 1
Level 1
greggsmith1247
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
greggsmith1247
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
greggsmith1247
Level 1

08-10-2010

I have a reset button in my form.

The javascript is:

form1.BodyPage.ResetButton1::click - (JavaScript, client)
xfa.host.messageBox("Are you sure you want to erase ALL data on this form and start over?")
xfa.host.resetData();
xfa.form.remerge();

I do have several required fields in the form.  The problem is when I use the reset button it clears the form but the red boxes still remain around the required fields.

what can I add to my javascript to accomplish this? This is probably a simple thing but I'm a bit of a noob at this, forgive me.

View Entire Topic

Avatar

Avatar
Validate 1
Level 1
ICETS_1
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
ICETS_1
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ICETS_1
Level 1

21-02-2011

Hello Greg

I was wondering if you can help me.

I have 5 Drop Down List fields on a page.  I want to insert a button that when pressed by the user clears (or resets) these 5 fields with out ressetting the whole form.

Can you help