Skip to content Skip to sidebar Skip to footer

How To Hide / Show The Sendbox Whenever The Bot Replies With The Suggested Action

I'm using Azure Chat bot (v4 MS bot framework) and applied in Direct line channel, and also I'm sending suggestedActions on certain places, on such time i want to disable/hide the

Solution 1:

After realizing that there is no solutions for this issue and still they are working to implement this feature in MS bot framework,

I used the following simple JavaScript method to achieve my requirement

functionhidesendbox()
{
    var suggestion = $('div.css-6p8cnn').length;

    if(suggestion > 0)
    {
        $(".main").hide();
    }else
    {
        $(".main").show();
    }
 }

though its simple, it actually worked for me.

Post a Comment for "How To Hide / Show The Sendbox Whenever The Bot Replies With The Suggested Action"