Fix for clearing out the contact form on submission

Support Forums for LiveMesh Themes & Plugins Forums Appdev Theme Support Fix for clearing out the contact form on submission

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1741
    livemesh
    Keymaster

    Currently the contact form does not clear the contents of the input fields upon successful submission by the user – when the user sees a message “Message Sent…” on the top. To fix this problem, pls edit the js/main.js file line number 318 to add the a form reset as shown below –

    to

    function (response) {
      $("#content .feedback").html('
    ' + mo_theme.success_message + '
    '); theForm.reset(); });

    and line number 335 to

    function (response) {
      $(".widget.feedback").html('
    ' + mo_theme.success_message + '
    '); theForm.reset(); });

    This change will be part of next update and hence no need to worry about repeating this change.

Viewing 1 post (of 1 total)
  • The forum ‘Appdev Theme Support’ is closed to new topics and replies.