Skip to main content
Clouhel
Participant
August 6, 2018
Question

How I can put a validation at the exit of a field by tabulation

  • August 6, 2018
  • 1 reply
  • 590 views

I a doing a form and I have to put two validation at the exit of a field. The validation must be done when a go out by tabulation.

The first validation is to make visible fields is a date is write in a specific field.

The second validation is to check a box is the date of reception is higher of the date of acceptation.

Where and how a can do those validation.

Thank you for your help.

Helen.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 7, 2018

The validation event is triggered automatically when the value of the field is changed. There's no need to do it when the user just tabs through the field and doesn't change its value.

You can read here about how to show/hide other fields and how to work with Date objects:

https://acrobatusers.com/tutorials/show_hide_fields

https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript

https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-2

https://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascript-part-3

Clouhel
ClouhelAuthor
Participant
August 7, 2018

Hi.

I know how to show and hidden field.

But when i write date in a specific field and I go out of the field by tabulation,  I want to make visible four fields. The prog that I use it's not working like usual. Why?

This the same thing for the second validation. The second validation is when I write the the date of reception and at the exit of the field by tabulation this date is higher of the date of acceptation, I have to check a box.

Can you help me?

Thank you.

try67
Community Expert
Community Expert
August 7, 2018

I understood your request and have provided the resources you need to achieve it.
If you want me to do it for you, for a fee, you can contact me privately (try6767 at gmail.com) to discuss it further.