Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Any idea what's wrong with this code fragment?

regelman_emil
Level 1
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?

0 Replies
whyisthisme
Level 7
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

regelman_emil
Level 1
Level 1

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

evening.

regelman_emil
Level 1
Level 1

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

evening.