Skip to main content
jelle wouterv79879982
Participating Frequently
December 18, 2019
解決済み

Acrobat form javascript

  • December 18, 2019
  • 返信数 2.
  • 1449 ビュー

Hello all.

 

I have a few questions and need your help for that.

 

I am making a checklist for my company for checking the designs and files we put out there.

Now the questions are:

 

1. I want the document to be only save as, this is so people can't overwrite the file. So when you open it, it will always be an unfilled form. So people can fill it the form, but can't normaly save or edit it.

 

2. We have different kind of status modes for waiting on agreement of the client and waiting for files and many more. Now I already have a buttons for the status modes:

What I would really like is when I hit the checkmark, the date of today (Datum=Date) will be automatically filled on the dotted line. This is probably done by Javascript.

 

I hope you guys can help

このトピックへの返信は締め切られました。
解決に役立った回答 bebarth

Hi,

I will not answer to the first question, but I don't think it is possible to lock the "Save" Menu function.

For the 2nd question, place this script in calcul of each date field:

if (this.getField("CheckBox").value!="Off") {
if (event.value=="") event.target.value=new Date();
} else {
event.value="";
}

these field must set with a date format.

@+

返信数 2

Bernd Alheit
Community Expert
Community Expert
December 18, 2019

1. Set the file and the folder of the file as read-only.

bebarth
Community Expert
bebarthCommunity Expert解決!
Community Expert
December 18, 2019

Hi,

I will not answer to the first question, but I don't think it is possible to lock the "Save" Menu function.

For the 2nd question, place this script in calcul of each date field:

if (this.getField("CheckBox").value!="Off") {
if (event.value=="") event.target.value=new Date();
} else {
event.value="";
}

these field must set with a date format.

@+

jelle wouterv79879982
Participating Frequently
December 18, 2019

Thanks man, the script works.

Now how can I auto activate it, so without to click the text field?