Copy link to clipboard
Copied
Hello
I have a form that was created in LiveCycle (not by me)
The Form is a fillable form that is protected (I cant make changes to the form itself)
What i am trying to do is to populate the fillable form fields from Excel or MSAccess using VBA -- this part I have solved - I am able to populate every field that I want to using VBA
What I am trying to now do is to Make some of the fields that I just populated as Read Only - so that when I save the file and send it to someone else - the fields that I just filled in will not be editable
I have tried this code
jso.getfields("LAB1070E[0].Page1[0].txtF_3_EmployNameAdd[0].ReadOnly = True
The code does not produce any errors - but it does not actually make the field Read Only
I have Tried
jso.xfa.resolvenode("forms.LAB1070.Page1.txtF_3_EmployNameAdd").rawValue = "1234"
This works to change the value - and seems to be the proper syntax for working with LiveCycle built forms - my questions is:
It is even possible to change tghe Read Only status of a Form Field using VBA so that when you save the PDF the field will actually be Read Only
What is the proper systax to use
Any assistance or thouights on this would be greatly appreciated
Thanks
Jeff
Copy link to clipboard
Copied
Questions about Adobe AEM/LiveCycle should be asked here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-mana...
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more