-
Hello, We have a PDF which we fill out with data, and we would like afterward to set the field names as "read-only= true" Is there a method or a way to do that. I didn't find a solution in the documentation or API. Best regards, Steve |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Making a field read only can be done by setting the corresponding flag. Some flags, like the read only flag, are available for all kinds of fields. The documentation shows the flags that are available for all fields, the class documentation for the specific field classes show the specific field flags for that kind of class. So you would do |
Beta Was this translation helpful? Give feedback.
Making a field read only can be done by setting the corresponding flag. Some flags, like the read only flag, are available for all kinds of fields. The documentation shows the flags that are available for all fields, the class documentation for the specific field classes show the specific field flags for that kind of class.
So you would do
field.flag(:read_only)
to set it to read only.