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

Date time field problem

Avatar

Avatar
Validate 1
Level 2
SnookerDJ
Level 2

Like

1 like

Total Posts

108 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
SnookerDJ
Level 2

Like

1 like

Total Posts

108 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
SnookerDJ
Level 2

24-03-2009

Hello there



This maybe a simple problem but on the Date time field object i have input a display pattern and put the error message in. When I preview the PDF and populate the object with random text the pop up box will display my error message.



What it does not do is clear the text I have input so the date can be re-entered correctly, which is what I was expecting. Therefore the user can continue on without addressing the date correctly.



Can anyone advise what I should do to get this to work?



Thanks



Darren

Replies

Avatar

Avatar
Validate 1
Level 2
SnookerDJ
Level 2

Like

1 like

Total Posts

108 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
SnookerDJ
Level 2

Like

1 like

Total Posts

108 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
SnookerDJ
Level 2

24-03-2009

Hi



The first time I thinkanyone has answered their own post. So for the benefit of anyone else I added the folowing script to the exit event

of the date field object



if (page.subform.dateobject.rawValue == page.subform.dateobject.formattedValue) {



xfa.host.resetData("xfa.form.Formtitle.Page.subform.datefieldobject")



Not sure why it works but just played around with it.