Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

EPiServer.Forms + AllowedTypes

Vote:
 

Hello,

when using the new EPiServer.Forms module how do you add it to the AllowedTypes attribute of a page type definition, the way you would with any other block type definition?

[AllowedTypes(typeof(SomeBlock), typeof(<>< EPiServer.Forms ? >>))]

BR

Patrik

#144411
Feb 12, 2016 11:37
Vote:
 

If you want to allow forms in your ContentArea add the type FormContainerBlock

[AllowedTypes(typeof(FormContainerBlock))]
public virtual ContentArea FormArea { get; set; }

/Mark

#144452
Feb 12, 2016 16:16
Vote:
 
<p>Thanks Mark, works like a charm.</p> <p></p> <p>//Patrik</p>
#144538
Feb 15, 2016 13:38
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.