This pdf form appears to have stopped functioning. Might one of you geniuses take a look and assist?

New Here ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

This pdf form appears to have stopped functioning. Might one of you geniuses take a look and assist in getting the validation and signature function to work? It does not seem to generate errors on the face of it but there are some value errors in the debug.

 

Thank you

 

Diego

 

 

TOPICS
JavaScript

Views

89

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 09, 2022 Aug 09, 2022

You have to rename the "display" variable. It will cause your code (and any other similar code running at the same time!) to not work correctly.

Likes

Translate

Translate
Community Expert ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

Use correct values for:

event.target.display

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

I don't think that's the issue. The display.X constants are actually just numbers, so 2 is the same as display.noPrint, for example. However, calling a variable "display" might not be the best idea.

To be honest, I don't really see a problem with the file. @Diego22347945ppfd , what's the exact issue you're having with it?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

Hi G,

 

This came to me from a technician that could not sign the form. When I try to click on the validation window, the form does not validate, nor does the signature field enable.

 

Thank you for checking this out.

 

Diego

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

Make sure they open the file in Adobe Acrobat (or Reader), and not on a mobile device.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

When I remove the line

 event.target.display = display;

there is no more error.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

Thank you!. I will try it out.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 09, 2022 Aug 09, 2022

Copy link to clipboard

Copied

You have to rename the "display" variable. It will cause your code (and any other similar code running at the same time!) to not work correctly.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 10, 2022 Aug 10, 2022

Copy link to clipboard

Copied

LATEST

Renamed the display variable and it seems to be working now. Was able to validate the form and sign. Thank you very much for your mentorship.

Diego

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines