Skip to main content
Participant
August 11, 2017
Question

How can you lock specific parameters in a rich text field on a spawned adobe acrobat pdf form?

  • August 11, 2017
  • 1 reply
  • 473 views

I am looking to lock the font, font size, line spacing, and above/below spacing. I would like the text whether typed in the field or pasted into the filed to be formatted to Helvetica, 8pt font, with 0 pt spacing above, 0 pt spacing below, and exactly 15.5 pt spacing between lines. I expect this can be accomplished through javascript, but I am unsure of the best approach.

This topic has been closed for replies.

1 reply

Inspiring
August 11, 2017

If you set up a field to allow rich text formatting, then the user will be able to change all of those things. It would be possible to change most of those properties back when the user commits the value via JavaScript, but maybe not all of them.

Participant
August 15, 2017

Thank you for your help George. I am rather new to Javascript. Would I place the script in the "Custom calculation script" area of the text field? My text field is being spawned many times, so the field name changes. Any suggestions you could make of how to control as many of these fields as possible in this rich text field would be very helpful.