Hiding content in custom forms

Using the custom form asset is there any functionality/validation to make questions appear based on what a user selects from a 'select' type question or will I need some javavscript?

You would need JavaScript at present: There is no built-in decision-tree support in the existing Custom Form asset.

[quote]You would need JavaScript at present: There is no built-in decision-tree support in the existing Custom Form asset.
[right][post=“15558”]<{POST_SNAPBACK}>[/post][/right][/quote]



So I guess I’m best developing the form in raw html than trying to combine javascript validation in the custom form asset?

[quote]So I guess I’m best developing the form in raw html than trying to combine javascript validation in the custom form asset?
[right][post=“15586”]<{POST_SNAPBACK}>[/post][/right][/quote]



I’d mix both: Use the custom form asset, but switch the Page Contents bodycopy into Raw HTML so you can better target your javascript.

[quote]I’d mix both: Use the custom form asset, but switch the Page Contents bodycopy into Raw HTML so you can better target your javascript.
[right][post=“15587”]<{POST_SNAPBACK}>[/post][/right][/quote]



OK I’ve got the required javascript and have it sitting in seperate div. It works as I have tested it outside of Matrix.



I’m using the %submit_button% keyword so how / where do I control the onsubmit action?