This tag is the primary tag required for inserting a form into a page. Using this tag alone won't result in anything being rendered to the screen for the user to see. Its function is to specify the form type and provide any default parameters to all form tags contained within this tag so that MemberMouse knows how to process them. This tag is meant to be used in conjunction with the other form tags including:


Attributes


type - Indicates which type of form is being created. Possible values are checkout, myaccount, login, forgotpassword and custom.



Additional Attributes by Form Type


Different form types support different attributes. Below is a list of supported attributes broken down by form type.


checkout


productId (optional) - Specifies the ID of the product being purchased on the checkout form. If this attribute is not provided then the checkout form will attempt to get the product ID from the querystring parameter rid in the browser URL. If both this attribute and the pid querystring parameter are set then the querystring parameter will be used.

membershipLevelId (optional) - Specifies the ID of the membership level being purchased or signed up for on the checkout form. If this attribute is not
provided then the checkout form will attempt to get the product ID from
the querystring parameter rid in the browser URL. If both this attribute and the rid querystring parameter are set then the querystring parameter will be used.


myAccount


no additional attributes supported


login


no additional attributes supported


forgotPassword


no additional attributes supported


resetPassword


no additional attributes supported


1clickpurchase


no additional attributes supported


custom


onSuccess (optional) - Specifies the URL to redirect to after the form has been successfully submitted and processed.


 


Usage



[MM_Form type="checkout"]

...

[/MM_Form]



[MM_Form type="myAccount"]

...

[/MM_Form]



[MM_Form type="1clickPurchase"]

...

[/MM_Form]



[MM_Form type="custom"]

...

[/MM_Form]