The content you're reading is getting on in years
This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
sender, EventArgs e)
var fromManager = FormsManager.GetManager();
//Get an existing form
var firstForm = fromManager.GetForms().Where(f => f.Title ==
var firstDraft = fromManager.EditForm(firstForm.Id);
//Duplicate the form
DuplicateForm(firstForm.Title, firstDraft, fromManager);
title, FormDraft draftToDuplicate, FormsManager receivingManager)
var dateString = DateTime.Now.ToString(
var name =
var formManager = receivingManager;
//Create a new form
var newForm = formManager.CreateForm(name);
newForm.Title = title +
var draft = formManager.EditForm(newForm.Id);
var master = formManager.Lifecycle.CheckOut(draft);
master.SuccessMessage = draftToDuplicate.SuccessMessage;
master.Owner = draftToDuplicate.Owner;
master.LastModified = DateTime.Now;
master = formManager.Lifecycle.CheckIn(master);
View all posts from Stefani Tacheva on the Progress blog. Connect with us about all things application development and deployment, data integration and digital business.
Subscribe to get all the news, info and tutorials you need to build better business apps and sites
You have the right to request deletion of your Personal Information at any time.
You can also ask us not to pass your Personal Information to third parties here: Do Not Sell My Info
Let our experts teach you how to use Sitefinity's best-in-class features to deliver compelling digital experiences.
Copyright © 2021 Progress Software Corporation and/or its subsidiaries or affiliates.All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.