Hiding text in forms based on result

Hi all,

I have a $$viewbody field and under it a text messsage “No results found” in a form. When ever the $$viewbody displays the embeded view , i want to hide the text message. Similarly, when the $$viewbody field does not show embedded view, i want to display

the text message(no results found).I used a hide-when for the text message which goes like this

$$ViewBody !=“”

—that is hide when $$viewbody returns a embedded view. This is just not working

on the web as it is supposed to.

Any idea will be of great help.

I appreciate it.

Thanks,

Jay.