I need a busy message added to the ticket submission

I would like to add a message when a support ticket is submitted, like this website, when you filter a product on the left sidebar

https://******************vinylliquidators.com/carpet/

It opens a message until the process complete.

This is the message that I would like to have "Please Wait While We Send Your Request"

Can you help me?

  • Predrag Dubajic

    Hi Peter,

    Adding this code to either your child theme functions.php or as mu-plugin should do the trick:

    function add_message_on_submit() { ?>
    
    	<script type="text/javascript">
    
    		jQuery( document ).ready(function() {
    		    jQuery("#support-system #support-system-ticket-form > .button").click(function () {
    			  jQuery("#support-system-ticket-form").append('<span id="my-custom-message">Please Wait While We Send Your Request</span>');
    			});
    		});
    
    	</script>
    
    	<style type="text/css">
    
    		#my-custom-message {
    		    position: absolute;
    		    background: #d8d8d88f;
    		    text-align: center;
    		    padding: 20px;
    		    border: 5px solid #00000026;
    		    border-radius: 5px;
    		    color: #6d6c6c;
    		    font-weight: bold;
    		    top: 40%;
    		    left: 15%;
    		    z-index: 99;
    		}
    
    	</style>
    
    <?php }
    add_action( 'wp_footer', 'add_message_on_submit' );

    You can adjust the position and colors in the styling provided there to fit your needs and that should be it :slight_smile:

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.