The page reloads because the buttons are inside a `<form>` tag, and even with `type=”button”`, some browsers may still try to submit the form. To prevent this, you should use choiceadvantage com JavaScript’s `event.preventDefault()` method. Modify your `onclick` functions to accept an `event` object and call `event.preventDefault()` at the beginning of the function. This will stop the default page reload behavior and allow your vote counting logic to work without interruption, a common practice for implementing features with AJAX.
The error “Please fill parent question field, Answer was not saved!” means you need to link your answer to a specific question. Go to the question you’re answering and use the “Answer this question” or a similar button to ensure your response is properly associated with it before you submit AESSuccess
Steve, the AnsPress Q&A tab in BuddyBoss points to a broken profile page without the Ask Question option. You can remove this default link using bp_core_remove_nav_item() and create a custom tab redirecting directly to /questions/. This ensures members always see the Ask Question link properly. integral calculator