Skip to main content
mda29018974
Participating Frequently
January 4, 2018
Answered

Is it possible to generate degree° symbol automatically?

  • January 4, 2018
  • 2 replies
  • 3895 views

This is what I wanted:

When user input a number in a "field", i.e "temperature", then a degree symbol will be added automatically above the number. Is it possible in a fillable PDF form? Thanks in advance!

This topic has been closed for replies.
Correct answer gkaiseril

Yes, you should use the custom format so only the displayed value shows the symbol.

// custom format to add degree symbol to custom field foamt;

if(event.value != "")

{

event.value = event.value + "\u00b0"; //

}

2 replies

mda29018974
Participating Frequently
January 5, 2018

It worked perfectly! Thanks a lot!

gkaiserilCorrect answer
Inspiring
January 4, 2018

Yes, you should use the custom format so only the displayed value shows the symbol.

// custom format to add degree symbol to custom field foamt;

if(event.value != "")

{

event.value = event.value + "\u00b0"; //

}

mda29018974
Participating Frequently
January 4, 2018

Hi,

Thanks so much for your reply. Could you please elaborate your answer as I am not good in these codes. If I have a field named "T", what should be the code and where should I put it in? TIA