Skip to content

Conversation

shreyawani98
Copy link
Contributor

This Client Script will ensure that the entered passport information and expiry date meet the requirements, providing a seamless and guided experience for the user.

The conditions are as follows:

The passport number must be exactly 8 characters long. The first character should be an uppercase letter, followed by two numeric characters—the first between 1 and 9, and the second between 0 and 9.

The date of expiry should auto-populate based on the date of issue. If the user is 18 years or older, the expiry date should be exactly 5 years from the date of issue. If the user is under 18, the expiry date should be exactly 10 years from the date of issue.

@shreyawani98
Copy link
Contributor Author

readme.md

@shreyawani98
Copy link
Contributor Author

Hi team, I am unable to create a new description(md) file in this branch, hence attaching the file from my device.

@shreyawani98 shreyawani98 changed the title passportvalidity.js Passport validity Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant