1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Clear Added Field After Quick Reply Submit

Discussion in 'XenForo Development Discussions' started by Snog, Nov 7, 2013.

  1. Snog

    Snog Well-Known Member

    I've added a couple of text input fields to the quick reply template and all works as it should from the PHP aspect of what I'm doing.

    But, I'm having trouble clearing those fields after the quick reply is submitted.

    I know how to do it by using javascript and adding onclick="submitForm()" to the post reply button and that works, BUT when I do it that way I lose the ability to display pop-up error messages.

    I am assuming it has something to do with AJAX and I'm missing where that is processed.

    Any ideas on how to clear those fields and retain the pop-up error messages?
     
  2. Snog

    Snog Well-Known Member

    Now doesn't it figure that after 2 days of trying to hunt this down I find it less than an hour after I post.

    It's in discussion.js. :D
     

Share This Page