I've found the solution on my own!
In the properties of the main field, go to Actions, choose on Blur, then execute Javascript and then insert the code similar to that below.
if (getField("Testo1").value == "X")
getField("Testo2").display = display.hidden;
else
getField("Testo2").display = display.visible;