Deactivate date integrity check in Foxit Reader - date

Is there any way to deactivate the date integrity check in Foxit Reader? Background is that I am filling a form where I shall enter the date in different formats (sometimes it's YYYY/MM/DD, sometimes it's just YYYY/MM). Each time I enter a date or any other field that is related to that date field I get an error popup that says
The input string can't be parsed to valid Date and time.
Unfortunately there are 36 rows with 4 columns each that I have to fill. Plus: That error message always occurs twice. So I have to click away 36 * 4 * 2 = 288 error popups.
Does anyone know a way to deactivate that check? Thanks a million...
Update:
It's actually even worse. Each time I edit any input field on that form this error popup occurs twice.

The issue here really lies with the PDF file, not the reader. Whoever created the PDF form you are using decided that each date field should have a format check. You can use a PDF editor such as Adobe Acrobat or Foxit PhantomPDF to remove these checks, or you can ask whoever created the file to do so. Changing that setting prevented the checks from working, but won't do anything if, for example, you send the file to someone else.

I found it out by myself. In HOME > PREFERENCES > Trust Manager I had to uncheck
Enable JavaScript Actions

Related

Input field data is visible to the user but apparently invisible to Chrome Dev Tools? How can I get at it?

Since I know Cypress, I offered to help a friend screen scrape data out of a legacy system for which he no longer has database access, but I seem to be at a dead-end.
The PHP code fills the form fields somehow, and I can cut'n paste from them into an editor but, when I try to automate that, the input field's innerText is always empty strings. I can use Dev Tools to search the DOM and find the text of the field labels, but searching for the input field text turns up nothing.
Is there really no way to get at that data?
How can Chrome be unable to find data that it is actually displaying?
Is this some kind of security barrier?

How do I make Filemaker "Insert from URL" work in Webdirect

Filemaker Pro 14.0 with Google Chrome and Safari both did not seem to work with WebDirect. The code concerned is:
So this works fine in filemaker client and I get a http request logged on my http server and a proper response is received. Webdirect somehow does not like it and I get no response, nor do I get a hit on my http server. What is even strange is that, it does not even show the current record from the database (the first record, which was selected on line 3).
My best guess is I am doing something which is not supported by WebDirect but fail to understand what exactly.
Basically what I am trying to do, is make a http request and retrieve the response text into a FileMaker variable. I am doing this by saving the response in a column and then retrieving the value of the column in a variable.
PS: Can someone also point me out how I can copy text from the scripting window?
I'm afraid there's much that seems wrong with the script. Perhaps you mistyped it, not having the ability to copy and paste the script?
Show Custom Dialog can't directly set the value of a variable. You need to use the input fields to set the value of a field, usually a global field, and you can then use that directly or you can move that value to a variable.
You don't seem to be setting the http_wrapper_response::response field to any value. The way you have that written, it will actually clear any value it may have.
The third line doesn't set the current record, it sets the text selection to the contents of that field, which you're clearing in the line above.

Automation of clicks on webpage using Matlab

So I'm looking for a way to systematically access data from a website. This data is updated every 15 minutes or so, and is generated through a datamart system that makes custom reports following several input parameters: the desired date interval, the specific dataset.
All these parameters require me to click on some specific buttons; I was wondering if it would be possible to automate these click inputs using Matlab (or something else if need be), to retrieve the data and treat it automatically.
Thanks in advance!
I suggest you take a look at http://www.autohotkey.com/. This is a great tool which allows for the automatic clicking on any window (including a browser page) under Windows. It even will let you "search" your screen for pixel images and then click on those images. This would allow you to make a very small bmp file of the link you would like to click on, and then your script can search your page and click directly on the link.
As far as getting data into matlab I'm not exactly sure of the best way to do this, but you might consider saving the html of the page, and then parsing that from matlab.

Network Diagram, Word etc

Making a word document of our network set-up.
We have about 7 servers and I need to include screenshots and other info on each.
Is it possible to have a pic of the server that when clicked will open up another word doc that reveals all of the other info. Can this then be mailed to someone easily?
I think that you should have actually tried to do it in Word before asking. The answer is trivial. For completeness sake:
Right-click on the image, choose "Hyperlink..." from the menu. Select the document you want from the resulting standard file selection dialog.
That's it. Doing ctrl-click on the pickture will open up the document selected though you will probably get a security warning first.
You can also do it from a VBA macro. First select the desired image and then:
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:= _
"C:\Users\me\Documents\a-document.doc", SubAddress:=""
So you could automate the process of server discovery (or maybe you have the data in a spreadsheet that you could use), adding images and hyperlinks automatically. Probably not worth it for just 7 servers.
I'm not clear what you mean by the last part about emailing. Do you want to email the Master word document or the one opened after clicking on the hyperlink? Either way, Word has a menu option for doing this.
If you are wanting to send the document that is opened from the hyperlink - do you actually need the user to open that document or would you rather email it directly? A simple macro can be written that will ask you for the target email address and send the document directly without having to open it. There are really too many possibilities to write down here - we need more information.

How can I return a text file and an error log from a webpage separately

I have a perl script which when run from the command line generates a text file of data with a specific format for use by another application. The script also prints informational warning messages on stderr. I'm writing a web front end for this. In an ideal world when the user clicks 'submit' on the associated form, a page would be displayed in the browser containing the informational messages, and simultaneously a pop-up would appear allowing the user to save the text file of data to disk. I would like this to work on browsers without javascript enabled, so I think exactly what I want is probably not possible.
Some sites I have seen deal with this kind of thing by displaying the page with the informational messages, and a link to the file to be downloaded. This would seem to mean having to store the files and sorting out some sort of security so that another user cannot download your file (not that this is a big deal for the application in question).
I'm wondering if there is a more elegant way of dealing with this? e.g Is it possible to use multipart messages to somehow achieve returning both pieces of information in one go? Is it possible to pop-up a second window with the informational messages without using javascript? Apologies if these seem like basic questions - my programming knowledge is in the domain of DNA sequence manipulation algorithms rather than web page generation..
If (and only if) the data is quick and easy to generate, do it once for error messages and a second time for download. The link or button of the error-message page would regenerate the results and prompt for download.
This is a bit of a hack since you need to consider what to do if the underlying data changes before the user hits the download link. Be careful to set the header correctly for file download vs normal webpage, eg,
if($submit) {
print header(-type=>'application/octet-stream',
-Content_disposition=>'attachment; filename=foobar.dat');
Gen_Results();
}
To be honest, I'd just use a little javascript anyway since it's a pretty safe assumption now a days. Otherwise, use a "noscript" tag for some alternative.