Quantcast
Channel: Adobe Community: Message List - PDF Forms
Browsing all 57214 articles
Browse latest View live

Re: Page Number based on slice() method

I did add debugging code and this is what its showing. page number:4page number:NaN So I'm not sure why it would be populating it twice. As for a different approach I felt this would be the quickest...

View Article


Re: Page Number based on slice() method

Where did you place that code?

View Article


Re: Page Number based on slice() method

This result doesn't make sense. NaN stands for "Not a Number" and is the result of trying to apply a mathematical operation on a non-number value, which you're not doing in the code you posted, so it...

View Article

Re: Page Number based on slice() method

The code was placed in a text box called page4 in the custom calculation script box. Again this is the full code that I'm using. var p_name = event.target.name; var ram =...

View Article

Re: Page Number based on slice() method

Here is the file: https://www.dropbox.com/s/t5xlqoj583kioo2/demo.pdf

View Article


Re: Page Number based on slice() method

First of all, you should try giving your variables more meaningful names.Secondly, the slice method returns a string. If you want to perform mathematical operations you have to first convert that...

View Article

Re: Page Number based on slice() method

Ok that still doesn't seem to work. What I don't under stand is I used the same code on all the pages and the only one that gives me the error is always the last page.

View Article

Re: Page Number based on slice() method

It's not working on the field that is on the hidden template page ("page4")... You can add a  condition to the code that if the field's page number is -1 (the page number of hidden pages), then it...

View Article


Re: Page Number based on slice() method

They are all hidden except the first page where you hit the continue button.

View Article


Re: Page Number based on slice() method

This code executes on two fields in the file you sent: "page4", and "P5.oh1page4.page4".The first is on the hidden template page, and there it fails. The second is on page 5, and there it goes well.

View Article

Re: Page Number based on slice() method

Ok so that would make sense why I would be getting the NaN, but why wouldn't that be on every page? And the solution would be to add the condition that you described?

View Article

Re: Page Number based on slice() method

Why wouldn't what be on every page? Yes, if you add the condition I described it should solve this issue.

View Article

Re: Page Number based on slice() method

What I'm saying is the coding is the same for every page #, I just don't understand why only the last page gets the NaN error and not pages 2-4

View Article


Re: Page Number based on slice() method

Because on that page the pattern of the field name is different. The secondcharacter of it is not the page number...

View Article

Re: Page Number based on slice() method

I set them all up the same. So the page before the NaN error is called page3 and page2 before that. Which in theory should error out or NaN on all of them

View Article


Re: Page Number based on slice() method

The fields on the spawned pages have the same pattern, but the original onedoes not...

View Article

Re: Page Number based on slice() method

Correct because there will only ever be one of that page. Which is why I set the default value to 1. So in turn for the other pages I had to do the calculation of - 1 on the page number to get the...

View Article


Re: Page Number based on slice() method

I think I've explained why it's happening pretty clearly already... I don'tknow how else to explain it.

View Article

Re: Submit Button to multible addresses

Do you have some example script I might be able to use to set up the list box emails?   Respectfully,   Joseph S. Danyluk AdvanTech Inc. Senior Technical Support Specialist  / Project Manager Cell:...

View Article

Form submit freeze/lock data

I have a form where it gets the date everytime you open the pdf and puts it in a text field form I created. I also have a submit form button within it so users can email the form to me for requests....

View Article
Browsing all 57214 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>