XModPro

Case statements in forms

HouseHandler HouseHandler posted Sep 18, 2014
Active Sep 19 · Viewed 843 times

Is there anyway to display different AddForm/EditForm? 

I have a template that has multiple templates inside it and would like to be able to click add or edit on one template and display one form while on another template display a different form.

Like there is in templates such as

<xmod:select>

<case value='[[Url:Item]]' operator="=" expression="A" comparetype="text">

<AddForm id=A>

</case>

<case value='[[Url:Item]]' operator="=" expression="B" comparetype="text">

<AddForm id=B>

</case>

<else> No valid case statement found </else>

</xmod:select>

2 Replies

Loading replies...