ASPX templates
Version 6.x > ASPX templates > Biz form not rendering when added in document type html field View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
adam - 9/14/2012 11:52:51 AM
   
Biz form not rendering when added in document type html field
Hi

i can add a cms editable region to an aspx page and the biz form renders but if i add it within a html editor in a document type (form tab of cmsdesk) the form does not get rendered and shows like this

{^widget|(name)BizForm|(BizFormName)testbizform|(UseColonBehindLabel)True|(Container)Div|(DisableViewState)False|(DisableMacros)False|(Visible)True|(UseUpdatePanel)False|(image_guid)c99e75ad-dce9-4cf0-a561-79e249ffd41c|(widget_displayname)On-line+form^}

any ideas?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/16/2012 1:31:07 AM
   
RE:Biz form not rendering when added in document type html field
Hi,

What are the security settings for the Online form widget in Site Manager -> Development -> Widgets -> Forms & Surveys -> Online form -> Security tab?
Is the widget allowed to be as an inline widget?

What is the exact version of the CMS you are using?
Also, for any other controls, this blog post could be helpful.

Best regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
adam - 9/17/2012 3:47:42 AM
   
RE:Biz form not rendering when added in document type html field
Hi,

i'm using version 6.0.4463

security settings allow inline widget.

looking at the blog post you linked to that uses a cms editable region on the page tab, this works for me.

i'm trying to add this control in an editable region on the form tab.


User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/17/2012 4:12:42 AM
   
RE:Biz form not rendering when added in document type html field
Hi,

in case you are using inline controls on the Form tab you need to resolve the content of field in the transformation:

<%# ControlsHelper.ResolveDynamicControls("YourFieldName") %>

From performance point of view it would be maybe better even not use BizForm in the transformation at all and rather use BizForm as a web part instead.

Best regards,
Ivana Tomanickova

User avatar
Certified Developer v7
Certified  Developer v7
adam - 9/17/2012 4:52:22 AM
   
RE:Biz form not rendering when added in document type html field
Hi

Thanks that ResolveDynamicControls worked.

i also looked into using the webpart on the page and setting the form control bizform to be used in document types an passing the bizform name to the webpart. this worked great but doesn't give the ability to position the form anywhere within the rest of the editable content on the page which is a requirement for this.

User avatar
Certified Developer v7
Certified  Developer v7
sachin-asentechllc - 10/16/2012 12:47:20 PM
   
RE:Biz form not rendering when added in document type html field
Hi,

I am facing the same problem. I have a document type. In its summary field I am adding some HTML data and widgets. The document type details page is a custom ascx webpart.

I am displaying the summary as follows after fetching it by querystring from database.
<p id="paraSummary" runat="server"></p>

paraSummary.InnerHtml = table.Rows[0]["Summary"].ToString();

But actually the online-form widget and youtube widgets are getting displayed as follows.

{^widget|(containertitle)Container+title|(disablemacros)False|(widget_displayname)On-line+form|(container)Form1|(bizformname)ContactUs|(disableviewstate)False|(usecolonbehindlabel)True|(visible)True|(image_guid)c99e75ad-dce9-4cf0-a561-79e249ffd41c|(name)BizForm|(useupdatepanel)False|(width)|(height)^}

{^youtubevideo|(width)425|(height)264|(border)False|(rel)True|(autoplay)False|(fs)True|(color2)#EFEFEF|(cookies)False|(url)http://www.youtube.com/watch?v=Olv19adOryo|(loop)False|(color1)#666666|(hd)False^}

How can I render thse on my ascx page??

Thanks and regards,
Sachin

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/17/2012 2:44:26 AM
   
RE:Biz form not rendering when added in document type html field
Hi,

I mentioned it in this thread.

Best regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
adam - 10/17/2012 4:26:11 AM
   
RE:Biz form not rendering when added in document type html field
i did it like this

in aspx page i had this

<asp:PlaceHolder ID="Plc" runat="server">
<asp:Literal ID="ArticleBody" runat="server"></asp:Literal>
</asp:PlaceHolder>

basically the ArticleBody is where is display the content of the html editable region from a custom doctype in the form tab of the CMS

Then on page load in code behind

ArticleBody.Text = CMSContext.CurrentDocument.GetValue("Body").ToString();
CMS.ExtendedControls.ControlsHelper.ResolveDynamicControls(Plc);