Skip to main content
rakeshk21205956
Inspiring
April 25, 2019
Question

Restrict user from changing Font, Size, weight even when Rich Text is Enabled.

  • April 25, 2019
  • 2 replies
  • 1431 views

Hi,

I want to restrict users from changing font and its size even when the rich text is enabled..... or if they have changed it will be reverted back when the file is opened next time.

Is it possible.

Thanks

This topic has been closed for replies.

2 replies

Legend
May 7, 2019

In the line of try67​'s comment, you would save the current span Object array (at latest in the onFocus Event), and compare the edited one with it in the Validation Event. Then you can reset the font sizes etc.

A simplification is when the properties you want to control are all the same within the field; then you simply would reset those values in the span Object.

Joel Geraci
Community Expert
Community Expert
April 29, 2019

It is. However, if you just want to use a fixed font and size, just set the field to have a fixed font and size... or did you want them to be able to use other types of rich formatting?

rakeshk21205956
Inspiring
May 3, 2019

I want that user cannot change the font, font size, but they can do underline, strikethrough, bold etc...

is it possible??

try67
Community Expert
Community Expert
May 3, 2019

You can't prevent them from changing it, but you can use a script to change it back to the desired settings under the Validation event of the field, I believe.