How to edit the information of a record using the BizForm layout?

Victor Hugo Garcia asked on November 17, 2015 17:34

Hello friends,

I would like to know if there is an easy way to edit the information of a record that was inserted using a bizform based on a url parameter such the ID or GUID.

Any ideas or options we have for that?

Note: I saw we can do that in a custom table form layout.

Thanks in advance

Recent Answers

Laura Frese answered on November 17, 2015 18:19

Are you looking to create a way for the user to edit records from a page in the site or do you want to edit it within the CMS? Within the CMS you can just go to Forms > FormName > Recorded Data > Edit (green pencil). If you want to allow users to edit from the front end, custom tables may be the better way to go and you can use Brenden's Custom Table Input Edit web part

0 votesVote for this answer Mark as a Correct answer

Victor Hugo Garcia answered on November 17, 2015 18:39 (last edited on November 17, 2015 18:44)

Thanks @LauraFrese for the answer. However I'm wondering if there is a webpart like the one you just referred but for a Bizform record.

I want to let the user to edit the record from the front-end area not the admin area.

Do you know if there is already a webpart out there that allows that?

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on November 17, 2015 20:59

You may be able to set the ItemID property of the online form or bizform. Not sure if that property exists on that, but it could be worth a try. If you take an online form and set it up to allow editing after submission, you will see that it creates a querystring with itemid=4 , looks like it then takes that and keeps the data there so that when you change it, it uses that id to update the record. Maybe you can use that to your advantage? Try placing a form on the page and the link to the object will send the user to the page where the form is and pass in the id as that querystring. Just a thought, may or may not work. Also, that may create some security issues, so beware of that.

0 votesVote for this answer Mark as a Correct answer

Boris Pocatko answered on November 18, 2015 04:59

A great resource is the following webinar from Miro:

Form engine webinar

He describes how to use our API for all kinds of objects using forms. Regrettably we don't have any OOTB web part, so you'd have to build one. You can also check our own UI web parts (~CMS\CMSModules\BizForms\Tools\BizForm_Edit_EditRecord.aspx.cs) used for editing objects, they may be a good starting point. Here is a code excerpt from that control:

// Get form id from url
    formId = QueryHelper.GetInteger("formid", 0);
    if (formId > 0)
        // Get form record id
        formRecordId = QueryHelper.GetInteger("formrecordid", 0);

        if (!RequestHelper.IsPostBack())
            chkSendNotification.Checked = (formRecordId <= 0);
            chkSendAutoresponder.Checked = (formRecordId <= 0);

        bfi = BizFormInfoProvider.GetBizFormInfo(formId);
        EditedObject = bfi;

        if (!RequestHelper.IsPostBack())
            // Get form info
            if (bfi != null)
                // Set form
                formElem.FormName = bfi.FormName;
                formElem.ItemID = formRecordId;
                formElem.ShowPrivateFields = true;

        formElem.FormRedirectToUrl = String.Empty;
        formElem.FormDisplayText = String.Empty;
        formElem.FormClearAfterSave = false;
        formElem.OnBeforeSave += formElem_OnBeforeSave;

The formElem is a BizForm:

<cms:BizForm ID="formElem" runat="server" IsLiveSite="false" DefaultFormLayout="Divs" MarkRequiredFields="True" />
0 votesVote for this answer Mark as a Correct answer

Victor Hugo Garcia answered on December 15, 2015 19:09

@JosuaAdams thanks for your input, I tried using the ItemID and it did not work.

@BorisPocatko I will give it a try to that approach and check the webinar, do you know if that works even with alternative layouts?

0 votesVote for this answer Mark as a Correct answer

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