Skip to main content
Participant
October 8, 2020
Question

Text hint in fillable form

  • October 8, 2020
  • 1 reply
  • 279 views

Hi. I've got a problem. I'm looking for a way to make a two different font styles in one box. I managed to make a fillable form that has a default text like:

[  company name ]

when the user writes down his company's name the text disappears, or when he clears his data, the default text is back. That works fine

What I try to do is to make a default text in italic style, while the user written text would be in bold style.

Is it possible to achieve through some Java script? To make two different font styles in one box?

Thanks in advance 😉 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
October 8, 2020

Yes, but it's quite complicated, since the default value property of a field (even one with Rich Text Formatting) is just pure text, without any formatting properties. You can do it by using a calculation script to set the field's (rich) value when it is cleared.