How to check if a user is in a group from a contact form

Blank 8/10/2019 03:06 - 8/10/2019 03:06
Developers

Often when creating custom contact forms you want to know if a user has already submitted with a given email address. You can find that out by making an ajax request to the contact app with request parameters contactForm and checkEmail

The contactus app will locate the group for that form and return a found property with a value of true or false wrapped in a standard JsonResult structure

Example request

http://www.kademi.co/contactus?contactForm=contact.html✓Email=aaa@bbb.com

Example response

{
    "data":{
        "found":false
    },
    "fieldMessages":[],
    "messages":[],
    "nextHref":"",
    "status":true
}
        

Hide comments