# Show gradio.Warning when clicking a button

**URL:** <https://discuss.huggingface.co/t/show-gradio-warning-when-clicking-a-button/53630>\
**Category:** 🔒 Gradio\
**Created:** [September 5, 2023, 12:02pm UTC](https://discuss.huggingface.co/t/show-gradio-warning-when-clicking-a-button/53630 "2023-09-05T12:02:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhcr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/zhcr/32/2397_2.png) [@zhcr](https://discuss.huggingface.co/u/zhcr)\
**Post date:** [September 5, 2023, 12:02pm UTC](https://discuss.huggingface.co/t/show-gradio-warning-when-clicking-a-button/53630/1 "2023-09-05T12:02:16Z")

</div>

I have a button that sends a request to an API but I also want this button to show a message when the API call has completed and run correctly.

I have seen the gradio.Warning message popup but the documentation is a bit scarce and cannot make my head around it in combination with the button handler.

Any help or code snippet that I can check?
