How to update form data(fields) after form submitted?

Gopala Padibandla asked on December 19, 2016 04:48

Hi, I am trying to find an easy way to update form fields after submitted.

For example, I would like to present a list of submitted forms and would like to provide the opportunity to the user to be able to update a field by clicking a button or a link.

I know I can update form fields by going into Kentico Admin but I would like to provide the opportunity to update submitted form using UI.

Having said that I would like to know whether it is possible with minimum/no customiastion.

Any help is much appreciated.

Thanks,

Gopala

Recent Answers


Richard Sustek answered on December 19, 2016 06:59

I suppose the easiest thing for you to do is to use the BizForm control directly in your custom web part and provide it with ID parameter so that existing data of a submitted form item are loaded and can be saved. You can find an example of the BizForm usage in the ~/CMSWebParts/BizForms/bizform.ascx web part.

2 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on December 19, 2016 15:33

You may want to check out the "Custom Table Form" web part. A custom table and a form are still database tables, you may need to adjust the control to allow you to select the form, and there may be a little adjustment in the code, but i think it would do you better to clone that web part and modify that since it already has the properties and logic for ya.

From a security standpoint, you may want to make a macro in the Visible though that ensures that the url parameter being passed is "owned" by the user, so you don't have the user just guessing formIDs and editing other people's form data!

0 votesVote for this answer Mark as a Correct answer

Gopala Padibandla answered on December 20, 2016 01:01 (last edited on December 20, 2016 01:02)

Hi Trevor, Thanks for the quick response.

I think I am looking for something close to what you are saying.

Can you please explain a bit more on how to adjust the control to allow to select the form? If you can provide some more doco around it that would be great,

Thanks

Gopala

0 votesVote for this answer Mark as a Correct answer

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