Hide/Display Annotations

Ram150
Tera Expert

I have a form with a few fields and annotations "1" and "2". 1 has to display if the logged in user has a particular role and 2 otherwise.

I've tried using document.getElementById(<id>).parentNode.style.display='block'; on an OnLoad Client Script, OnChange Client Script and UI Policy. I've tried to declare document.getElementById(<id>) to a variable and modify the styling separately. Doesn't work.

I'm on Kingston. If anyone has any experience making this work, please suggest a solution

6 REPLIES 6

Hi Rahul,

I've tried this and the results have been inconsistent. That's the reason I've posted it on the forum again.