Umbraco Forms - How to sort records.RecordFields as it appears in the frontend
Here is the code we have for sending custom formatted email when submittig a form.
var guidL = new Guid(recordid);
RecordStorage rs = new RecordStorage();
var records = rs.GetRecordByUniqueId(guidL);
foreach(var field in records.RecordFields )
{
//make email body
}
//send email
We can not find a way to sort the fields as it appears in the frontend form - there is no recordindex or sortorder.
The fields appears properly sorted when using the builtin workflow - Send Email.
Umbraco Forms - How to sort records.RecordFields as it appears in the frontend
Here is the code we have for sending custom formatted email when submittig a form.
We can not find a way to sort the fields as it appears in the frontend form - there is no recordindex or sortorder.
The fields appears properly sorted when using the builtin workflow - Send Email.
Plaese help
Hi Anz,
I know it's ugly solution, but you can save your row index in the hidden fields on the frontend, and then use this numbers for sorting in backend.
Thanks
is working on a reply...