Skip to content

How to Clear Old Form inputs when launching the embed pdf #5

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

Open
shreyash-jain opened this issue Apr 17, 2024 · 2 comments
Open

How to Clear Old Form inputs when launching the embed pdf #5

shreyash-jain opened this issue Apr 17, 2024 · 2 comments
Labels
feature request Feature request

Comments

@shreyash-jain
Copy link

Currently I am using the script like
<EmbedPDF mode="inline" style={{ width: 900, height: 800 }} documentURL="https://laborlink-media-bucket.s3.ap-south-1.amazonaws.com/internal/exhibit101.pdf" /> But the issue is that for each user I want to create form I am getting prefilled signature and other details, is there a solution to this

@bendersej
Copy link
Collaborator

bendersej commented Apr 18, 2024

Hey @shreyash-jain!

But the issue is that for each user I want to create form I am getting prefilled signature and other details

SimplePDF automatically caches (in local storage) the filled values – to prevent users from having to fill the same details again if they close the tab or for convenience if they open the same document in the future.

If I understood you correctly, you (or your users) are opening the same document multiple times in a row, and therefore the previously filled values are present when opening the document?

If you can confirm that this is the issue, I could look into disabling that behaviour for simplepdf-embed and instead reset the form values for each opening automatically: would that work for you?

@bendersej bendersej added the feature request Feature request label Jul 18, 2024
@alexisicte
Copy link

Hi @bendersej ,

Any updates on this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

3 participants