Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

subforms

Avatar

Level 2

i hide the 3rd page in my form when you click on the (accident button) in page 2 the 3rd page will become active.  The problem is now in page 3 i have a button (vehicle two) once you click it (vehicle 2) information box's are suppose to appear like vechile 1 information is.  It was working fine until i hide page 3 now i dont know whats going on.  sorry if its confusing screen shot1.JPG

here is the accident button script...

form1.page2.AccidentPage::click - (JavaScript, client)

 

if

(form1.page_3.presence == "hidden" )

{

form1.page_3.presence

= "visible";

}

else

{

form1.page_3.presence

= "hidden"; }

here is the vehicle two button script

form1.page_3.page3.VehicleTwo::click - (JavaScript, client)

 

if

(form1.page3.vehicle2.presence == "hidden" )

form1.page3.vehicle2.presence

= "visible";

 

else

{

form1.page3.vehicle2.presence

= "hidden";

}

1 Reply

Avatar

Level 2

i just forgot to add the first page in the script so i added the page and now it works

Thanks