Expand my Community achievements bar.

How to Underline a field value through JavaScript

Avatar

Level 2

Hi

In my form I am displaying a field value through JavaScript. The filed value has script to concatenate the values if there are more tham1. I want this field to be underlined when there are values and I do not wish to show underline there are no values or null values. When there are no values I am setting the field value to _.

1. If i have 3 vales as Jim, Don and Gray

I want the filed to display as Jim, Don, Gray

2. If I have no values

I want the field to display as _

I can able to acheive this with the underline option that is there in Designer but when I have 0 or null values i see two lines like '='

Can somebody tell me how to set underline option woth JavaScript

1 Reply

Avatar

Level 10

To add/remove the underline to the field use: