I´ve been trying far too long to show a form summary of user input from a previous step.
I think i have tried everything :)
My plan is to create a new form field type which will loop through all entered values and show them in the form as a table or similar. I have successfully created the field type, have some other custom field types already, and can get the values using var form = TempData["umbracoformsform"] as FormViewModel;. However when using TempData all keys are Guid and thats not really descriptive so tried injecting IRecordReaderService but cannot get anything from any of the methods.
How can i get keys and values from current form in order to show some sort of summary before posting the form?
Form summary
Hi,
I´ve been trying far too long to show a form summary of user input from a previous step.
I think i have tried everything :)
My plan is to create a new form field type which will loop through all entered values and show them in the form as a table or similar. I have successfully created the field type, have some other custom field types already, and can get the values using
var form = TempData["umbracoformsform"] as FormViewModel;
. However when usingTempData
all keys areGuid
and thats not really descriptive so tried injectingIRecordReaderService
but cannot get anything from any of the methods.How can i get keys and values from current form in order to show some sort of summary before posting the form?
Thanks and best regards!
I have solved it, not sure this is the best way but its a way...
Please comment if anyone has a better solution.
is working on a reply...