I have added a custom field type in forms that was completed successfully.
But I wanted to show a summary of filled fields in the new field. Do you have any advice of how it can be done?
thanks Alex. Got this code from the net, but generating an error. Do you know if that can retrieve the record before submitting? thanks
string formGuid = "03928f28-cceb-4eb4-8eb2-4c1f69927430";
if (!string.IsNullOrWhiteSpace(formGuid))
{
string pageId = umbraco.presentation.nodeFactory.Node.GetCurrent().Id.ToString();
string cookieName = String.Format("contour_{0}_{1}", pageId, formGuid);
string recordId = Request.Cookies[cookieName].Value;
dynamic record = null;
if (!string.IsNullOrWhiteSpace(recordId))
{
// get access to the database where the form records are stored
using (var recordStorage = new Umbraco.Forms.Data.Storage.RecordStorage())
{
// get the record by id, but the id is a guid
var rec = recordStorage.GetRecord(new Guid(recordId));
// get the dynamic record object, this object is stored as xml in the database in table UFRecordsXML
record = new Umbraco.Forms.Mvc.DynamicObjects.DynamicRecord(rec);
}
}
}
Customized field type in Form
Hello Everyone,
Are the above field types standard in Umbraco forms?
can i add customized field type like Rich text editor and button? Please help. Thank you in advance.
Hi Manasa
Yes, this is a list of Umbraco Forms fields. Of course, you can create custom Umbraco Forms field, have a look at these links:
https://our.umbraco.org/documentation/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Fieldtype
http://www.skrift.io/articles/archive/extending-umbraco-forms/
https://our.umbraco.org/forum/umbraco-forms/86590-custom-field-type-umbraco-forms
And ask more questions on our.forum, it's super friendly community :)
Thanks,
Alex
Hi Manasa
Did you find a solution? can you share with our community?
/Alex
No Alex, can you please guide me,Thank you.
Hello Alex
I have added a custom field type in forms that was completed successfully. But I wanted to show a summary of filled fields in the new field. Do you have any advice of how it can be done?
thanks Aaeda
Hi Aaeda
Do you want to show a summary on the form or on the thank you page?
Alex
Hello Alex
In fact I am doing a multi step form and I want to show the summary before the user submits the form.
thanks
If you want to show it before submit without page reload - then you have to use some js on the page that will show data.
Hi
thanks Alex. Got this code from the net, but generating an error. Do you know if that can retrieve the record before submitting? thanks
is working on a reply...