Expand my Community achievements bar.

Attention: Experience League Community will undergo scheduled maintenance on Tuesday, August 20th between 10-11 PM PDT. During this time, the Community and its content will not be accessible. We apologize for any inconvenience this may cause.

Replace Pages dynamicly

Avatar

Former Community Member
Hello! I have a problem with a form and dont know how i can solve it.

I have a form with serval pages. In the first page i have a dropdown, here can the user select the Art of form. based on this selection the default page 3 shoudt be invisible and an other page 3 shouldt visible. The problem here is how can i set an other page by javascript and how can i disable the invisible page from the xml? i want only the visible pages send by mail not the invisible unused pages. How can i make this?
1 Reply

Avatar

Former Community Member
hi,



I don't know what your meant by XML, but you can use javascript to control your form as following:



Try to group your section in a subform. , initialise all subform to be invisble using javascript in the Form:Open event.



ie.

F.P1.SubForm1.presence = "hidden";



Then depend on the your selection, which you can enable the form as



F.P1.SubForm1.presence = "visible";