Add form using code behind C#

Mike Nguyen asked on March 5, 2014 13:21

Hello,

Is there a way to add form/Bizform/Custom form using code behind C#? I've looked at Form module and Form internal & API but can't find any tutorial to on this subject. Any help/idea/guidance is appreciated.

Best,

Mike N.

Recent Answers


Brenden Kehren answered on March 5, 2014 23:55

If you look at the BizForm webpart code, you can see some code in there that might help you get started.

CMS.FormControls.BizForm

Is the namespace you're looking for I believe. You can then set the .FormName property and bind the control it should pick up the form definition and display it for you.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on March 6, 2014 03:19

Hi, This was also discussed in the past in the old forums in this thread and also in this thread. I hope it will help.

Best regards,
Juraj Ondrus

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.