Using Annotation + DIV to hide/show via CLient script - Doubling the size of Annotation

Josh80
Tera Expert

Hi - I have 2 client scripts in place to hide/show an Annotation on the New Call form.   The annotation is wrapped in a DIV.

<div id="anno1">Caller   Information</div>

However, the annocation when using the HTML is doubled in size.   WITHOUT the HTML wrap, it is a single line and looks clean.

Please see image.   Any suggestions on how to correct?

Snap80.png

1 ACCEPTED SOLUTION

ccajohnson
Kilo Sage

Try using < span > instead of < div >


View solution in original post

4 REPLIES 4

ccajohnson
Kilo Sage

Try using < span > instead of < div >


Hi Chris...



Not a native HTML user...so does that mean I'd have to change the Client Scripts too?


document.getElementById("anno1").parentNode.style.display="none";



Not sure what that would look like.


Ignore that...lol



I figured it out.



span id etc.   tahnk you!


ersureshbe
Giga Sage
Giga Sage

Hi,

Can you please suggest steps how you called the annotation using client script?

Regards,

Suresh

Regards,
Suresh.