Skip to content

Fixed validation logic and download behavior #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 17, 2025

Conversation

IshaSitlani
Copy link
Contributor

Previously, the resume couldn’t be downloaded unless all form fields were filled correctly.
This was a problem because:

Some users may want to preview the resume before completing the form.

Incomplete but partially filled forms still blocked download, which was frustrating.

What I Did
I modified the validation function to show an alert when errors are present.

The alert asks the user if they still want to continue.

If the user clicks "OK", the resume is downloaded anyway.

If they click "Cancel", the download is stopped.

Why It’s Correct
The original strict validation blocked all users with even small errors.

My change gives flexibility while still alerting users about mistakes.

It keeps the resume preview feature functional without forcing full form completion.

I tested both complete and incomplete forms — the resume downloads properly in both cases.

Copy link

netlify bot commented Aug 4, 2025

Deploy Preview for resume-generator011 ready!

Name Link
🔨 Latest commit 9bcd7db
🔍 Latest deploy log https://app.netlify.com/projects/resume-generator011/deploys/68912a7229d4150008daf7d3
😎 Deploy Preview https://deploy-preview-92--resume-generator011.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@IshaSitlani
Copy link
Contributor Author

Hi @rajdeep13-coder just following up on this PR. Let me know if any changes are needed before it can be merged.

@rajdeep13-coder rajdeep13-coder added bug Something isn't working gssoc25 labels Aug 17, 2025
@rajdeep13-coder rajdeep13-coder merged commit e79d7ec into rajdeep13-coder:main Aug 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gssoc25
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants