Expand my Community achievements bar.

Any idea what's wrong with this code fragment?

Avatar

Level 1

form1.Guideline_Choices.Guideline_Choices::change - (FormCalc, client)

if(Guideline_Choices == "Fences") then

          Fences.presence ="visible"

          Roofs.presence = "hidden"

          Guideline_Choices = "hidden"

 

elseif(Guideline_Choices == "Roofs") then

          Roofs.presence = "visible"

          Fences.presence = "hidden"

          Guideline_Choices = "hidden"

 

endif

When I select "Fences", the subform for "Roofs" is displayed.  When I select "Roofs", the subform for "Fences" is displayed.  Any idea what might be wrong?

3 Replies

Avatar

Level 7

well you are missing ".presence" after Guideline_Choices but I think the problem is you have the code in the wrong event. Try putting it in the exit event of Guideline_Choices and it should look like this:

if ($ == "Fences") then

Fences.presence = "visible"

Roofs.presence = "hidden"

$.presence = "hidden"

elseif ($ == "Roofs") then

Roofs.presence = "visible"

Fences.presence = "hidden"

$.presence = "hidden"

endif

Avatar

Level 1

Thanx for the speedy response. I'll give your suggestion a shot later this

evening.

Avatar

Level 1

Thanx for the speedy response. I'll give your suggestion a shot later this

evening.