+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Where is the FormsModule class?

Where is the FormsModule class?

4 posts, 0 answered
  1. Ed
    Ed avatar
    20 posts
    Registered:
    26 Mar 2013
    03 Mar 2015
    Link to this post

    Where would I edit the forms module class? I'm trying to implement an AJAX submission for the forms module and would like to follow this:

     http://docs.sitefinity.com/for-developers-submit-forms-using-ajax-call

     Where do I edit this code? I can't find anything in my solutions explorer when searching for the string "FormsModule".

  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    03 Mar 2015 in reply to Ed
    Link to this post

    You should only need to follow the last bit and set the property on the widget to get ajax submit

    Enable the AJAX submit call in the Form widget You enable the AJAX submit functionality by editing the Advanced settings of the Form widget: Open the designer of the Form widget.Click Advanced.In the UseAjaxSubmit input field, enter true.

    What is it you're trying to do above the basic ajax submit\save?

  3. Ed
    Ed avatar
    20 posts
    Registered:
    26 Mar 2013
    03 Mar 2015 in reply to Steve
    Link to this post
    Yeah, I found and set that setting. But I need to map form fields to certain values and pass to a specific url. It's a little but tough to figure out how to do that though. Not much info anywhere.
  4. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    06 Dec 2016
    06 Mar 2015
    Link to this post
    Hi Ed,

    Using the EventHub you can subscribe for "iformvalidatingevent" where you have a collection of all the fields.
    Then you can get the field value you need as describe in the example here and implement your custom logic.

    I hope this information helps.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
4 posts, 0 answered