Skip to main content
rakeshk21205956
Inspiring
Apr 25, 2019 2:40 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

8 replies

Legend
May 7, 2019 9:07 AM UTC

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.

Translate
Joel Geraci
Community Expert
Community Expert
Apr 29, 2019 3:47 PM UTC

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?

Translate
rakeshk21205956
Inspiring
May 3, 2019 10:49 AM UTC

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

is it possible??

Translate
try67
Community Expert
Community Expert
May 3, 2019 12:18 PM UTC

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.

Translate