Hi Tolen, the reason the JS is not working is because you locked the PDF. As a result the form can no longer change. If you save the filled out form without that the JS will be executed. You need to have the protection set so that form filling is still allowed as you'd like the form to change.
BR Maruan > Am 02.11.2015 um 17:43 schrieb Tolen Miller <[email protected]>: > > Apologies, I thought I had commented that out. The pw should > be "Domino-Admin" > > On Sun, Nov 1, 2015 at 11:35 PM Maruan Sahyoun <[email protected]> > wrote: > >> Hi Tolen, >>> Am 31.10.2015 um 06:24 schrieb Tolen Miller <[email protected]>: >>> >>> Sample template is here: http://1drv.ms/1NHma2k >>> >>> Sample filled is here: http://1drv.ms/1NHmnm0 <http://1drv.ms/1NHmnm0> >> >> that file is password protected - could you let me know which one it is so >> I can open and edit it? >> >> BR >> Maruan >> >>> >>> >>> On Tue, Oct 27, 2015 at 11:21 PM Maruan Sahyoun <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>>> Am 28.10.2015 um 04:47 schrieb Tolen Miller <[email protected]>: >>>>> >>>>> Hello, >>>>> >>>>> I am working on a form produced in Adobe Livecycle, which is being >> filled >>>>> via PDFBox 1.8.10. I am wondering what options I have to show/hide a >>>> field >>>>> based on it's value (and possibly a list of field names since some >> fields >>>>> should always show). i.e. there are several fields I would like to >> hide >>>>> (or table rows that contain them), when they are null. >>>>> >>>>> Normally, I could do this in an initialization javascript on the >>>> livecycle >>>>> form itself (all users use Adobe's Reader), but this does not seem to >>>> work >>>>> when opening the form after filling it with PDFBox. Is this not >>>> supported? >>>>> Does editing the form destroy the scripts or is something else >> happening? >>>> >>>> would it be possible to upload a sample form before and after filling >> to a >>>> public location and mention the field which should be affected by the >> JS. >>>> >>>> PDFBox does not execute any JS - be it in AcroForms or XFA. But the >> Adobe >>>> Reader should execute it - dependent on the event the JS is in. >>>> >>>> BR >>>> Maruan >>>> >>>>> >>>>> I would either like to persist the scripts that exist on the form so >> they >>>>> may execute; create scripts in java code to add to the form; or create >>>> the >>>>> functionality in java and omit js entirely. >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

