Sep 11, 2014 at 4:49 PM
Edited Sep 11, 2014 at 4:53 PM
I build an contact flyout with custom forms for my webpage. This form needs to be send async to the server.
With the help of
its no problem.
I parse the required information from the form and send it with an ajax request, but I am not happy with the return. Custom Forms return, as needed without ajax, the whole html, but I need an json return or something like that. The sloppy workaround is to edit
the custom form module with this code and add an attribute in my ajax call:
if (HttpContext.Request["isAjax"] != null && HttpContext.Request["isAjax"] == "true")
But I am not really a fan of editing other modules because in the next update it will break again. So I want to ask, if there is a way to extend Custom Forms in this case?
edit: How can I change the size of the picture in markdown? :)