BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Post Update button disable during posting

Viewing 7 posts - 1 through 7 (of 7 total)
  • Question

    #34976
    @jasonvphase2solutions

    I’m curious of a way to either disable the Post Update button while the activity post is in the process of posting. Sometimes user click it twice if it doesn’t reload below instantly. I’m thinking either disabling the button or replacing it with a loading symbol after it is first clicked. Any ideas?

    Answers

    #34978

    Alyssa
    Participant
    @alyssa-buddyboss

    @jasonvphase2solutions I was told in the past this is not possible based on how BuddyPress functions with all its form validation. You may want to try BuddyPress support on this one.

    #35052
    @jasonvphase2solutions

    Thanks TJ! I went ahead and started a forum post here: https://buddypress.org/support/topic/post-update-button-disable-during-posting/

    I’ll keep this string updated once I find something.

    #35059
    @jasonvphase2solutions

    It looks like this could be possible using something like:

    <script>
        $( '#aw-whats-new-submit' ).click( function() {
            $( this ).attr( 'disabled', true );
        });
    </script>

    Is it possible to add the loading animation inside of the Post Update button only while it processes the request?

    #35149

    Alyssa
    Participant
    @alyssa-buddyboss

    @jasonvphase2solutions the problem with doing that is what if there is form validation, users will be unable to submit after fixing form validation. They will need to refresh the page and start over. I’m afraid you will need to contact BuddyPress for further support putting it into the process request. I’m not sure there is a hook there.

    #35170
    @jasonvphase2solutions

    I agree. The overall goal here is to indicate that the message is posting. Using the code or something similar to what I have above, is there a way to show the Ajax circle loading image when it is posting the message. The same loading image as when you move from tab to tab on the activity page. I believe the older version of BuddyBoss had something like that.

    Thoughts?

    I appreciate your help TJ!

    #35186

    Alyssa
    Participant
    @alyssa-buddyboss

    @jasonvphase2solutions to my knowledge BuddyBoss has never had ajax loading icon on the post button. The tabs in the activity feed are all BuddyPress functions. I’m not knowledgeable with those functions to be able to give you any direction here. Sorry.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The question ‘Post Update button disable during posting’ is closed to new replies.