Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
hi, i have a form with a field to store email, now i want to check if the email that the user submitted is not already submitted before and if it does display appropriate message,does anyone can direct me how to do it?i got an idea to do it with code first and then use the submit event and check it (still hasn't figured out how to check it) but i don't want to convert it, it will take me ages to convert it...thank you...
Maybe this will help you:
1. Reg the event:
private void RecordService_RecordSubmitted(object sender, Umbraco.Forms.Core.RecordEventArgs e)
if (e.Form.Id == new Guid("a95f94d6-9b2f-443e-b603-b69db5c5cc07"))
2. search the entries
string formId = "b62ffdb4-1620-44a6-8859-465f36b75b89";
Umbraco.Forms.Data.Storage.RecordStorage rs = new Umbraco.Forms.Data.Storage.RecordStorage();
Guid formGuidGuid = Guid.Parse(formId);
var member = Membership.GetUser();
var num = 0;
if(Member.GetCurrentMember() != null)
string cm = Member.GetCurrentMember().LoginName;
var records = rs.GetAllRecords(formGuidGuid)
.Where(c => c.GetRecordField("LoginName").Values.Count > 0 && c.GetRecordField("LoginName")
.Values.ToString() == cm)
num = records.Count;
thanks that helped me alot :)
I have the exact same requirements, can you please share your solution with me.
Its the least I can do...
I am using Umbraco forms 4.3.2 and there is no RecordService in the form services?
how can I register record submitted event without the record service
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted