Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Change a Fillable Field to Read Only Using VBA

New Here ,
Jul 14, 2020 Jul 14, 2020

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

 

TOPICS
How to , PDF forms
556
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 15, 2020 Jul 15, 2020
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines