Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Date Field Validation

Avatar

Former Community Member

I've created a date field with validation parameters, but when a user enters "1234567891011" it'll give a validation error message, but it will still allow the user to continue onto the next field. How do I wipe out the bad date and set the focus back to the date field forcing them to enter a proper date?

1 Accepted Solution

Avatar

Correct answer by
Level 4

I am sorry, i totally forgot about this. Got busy with regular activities.

Please try from this link http://www.megaupload.com/?d=K1JNAZLW

let me know if it helps you.

thanks,

Rajesh

View solution in original post

9 Replies

Avatar

Level 4

Hi,

    This sample may work out for you

https://acrobat.com/#d=Gcr*icvepRfzXAqEHYwL5A

let me know, in case you need more.

thanks,

Rajesh

Avatar

Former Community Member

It says the document can’t be found or I don’t have access to it.

Avatar

Level 4

There will be a "Download" button in the left-top corner of the page. From there you can get the PDF.

Let me know if it doesn't work, i will send through a different channel

Thanks,

Rajesh

Avatar

Former Community Member

No Download, just an Upload and an Import.[cid:image001.jpg@01CC948A.335073D0]

Avatar

Former Community Member

Any other way we can share the file rajesh9g?

Avatar

Level 7

You could do an if statement where if the field fails its validation the field becomes "" (blank) and validate.nullTest="error" (makes the field mandatory).

Avatar

Correct answer by
Level 4

I am sorry, i totally forgot about this. Got busy with regular activities.

Please try from this link http://www.megaupload.com/?d=K1JNAZLW

let me know if it helps you.

thanks,

Rajesh

Avatar

Former Community Member

But what about if it's a zip code or phone number? with the "-" and the "("?  Adobe should have allowed for these issues before giving out the datetime object and the numeric objects with validation formats.