hide previously shown form fields in on change{} block

hide previously shown form fields in on change{} block

Hi. In my on change{} script, if the thing selected has a description field that is not empty (!= ""), I would like to show two fields that were initially hidden in the on load{} script. Otherwise, those two hidden fields should remain hidden.

Also, after a user has selected a thing without an empty description but then afterwards selects a thing with an empty description, I would again like those two fields to switch from shown to hidden.

The on change{} syntax below is not working for me because after a thing with a description is selected, followed by one that does not have a description, the fields that should be hidden remain in the form. You can see what I'm talking about in the "Descriptions"."Rate a description"."Which thing?" field's on change{} script in the public application, http://creator.zoho.com/sharetactics/refactor/

Does someone know how I can again hide fields that were previously shown via Deluge code in an on change script? Thanks in advance.

vThing = DescribeSomething [thing == input.thing];
for each vT in vThing
{
if (vT.description != "")
{
description.add(vT.description);
show description;
show rating;
}
else
{
hide description;
hide rating;
}
}

-pete