Copy link to clipboard
Copied
Good afternoon everyone.
We have a problem creating a form to fill out. We need a transparent form, but every single user should go on Preferences-Forms and deactivate "Show border hover color for fields" in order to not see the default light blue background.
Creating the form on Acrobat Pro, we set as transparent every single line, but we see the transparency only on that computer; as soon as we open the same file with another computer, we see the form with the light blue background (check attached image), and we have to deactivate it on preferences.
Is there a script or a way to set as permanent the transparency of the form?
Thanks a lot for your help
There is a way to turn off highlight with a script, but it's not recommended to change settings of other users without their knowledge, so I would recommend to use alert when document open to check if highlight is 'ON' then ask user if he wants to turn it off.
EDIT:
You can use something like this as document level script:
if(app.runtimeHighlight){
var cAlert = app.alert("Your fields highlight is turned 'ON' you won't be able to see fields as we intended.\nIf you wish to turn it 'OFF' click 'Y
...
The easiest way to do this is to "flatten" the form which removes the fields but leaves the values prior to sending it to the final customer. By removing the fields, you won't see the highlight anymore. The script...
this.flattenPages()
... will flatten the form. Be sure to only do this to a copy of the form.
Don't flatten forms if you want to later be able to automatically read them i.e. extract the data. Form flatteners are my nemesis - apple mac users seem to do it without even knowing š
Copy link to clipboard
Copied
There is a way to turn off highlight with a script, but it's not recommended to change settings of other users without their knowledge, so I would recommend to use alert when document open to check if highlight is 'ON' then ask user if he wants to turn it off.
EDIT:
You can use something like this as document level script:
if(app.runtimeHighlight){
var cAlert = app.alert("Your fields highlight is turned 'ON' you won't be able to see fields as we intended.\nIf you wish to turn it 'OFF' click 'YES' otherwise click 'NO'.\nTo turn back 'ON' fields highlight go to Preferenceā¾Formsā¾Show border hover color for fields.",0,2)}
if(cAlert == 4)app.runtimeHighlight = false;
Copy link to clipboard
Copied
Dear Nesa, really thanks for your help, it works perfectly! Anyway, we agree with you it's not the best way setting a script that modifies user's set up. As this is the only way to avoid the form background color, we are thinking about a different way we would like to share with you. We need the form only for our area manager, (they only have to fill the form with customer data and other datas like revisions). When they complete the filling, they can share the document with the final customers (the final customers don't have to fill the form and we prefer they don't see the background under their informations). Do you think there is a way to set the form as active only for some users? Or something similar like a function for the area manager to de-activate the form before sharing? Thanks a lot for your help! |
Copy link to clipboard
Copied
The easiest way to do this is to "flatten" the form which removes the fields but leaves the values prior to sending it to the final customer. By removing the fields, you won't see the highlight anymore. The script...
this.flattenPages()
... will flatten the form. Be sure to only do this to a copy of the form.
Copy link to clipboard
Copied
Don't flatten forms if you want to later be able to automatically read them i.e. extract the data. Form flatteners are my nemesis - apple mac users seem to do it without even knowing š