question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Hide send box input without hiding suggested actions

See original GitHub issue

Feature Request

Describe the suggestion or request in detail

At the moment, customers can hide the Send Box through Web Chat’s style options; however, the hideSendBox option also hides suggested actions. It would be beneficial to have the ability to hide the side box while still displaying the suggested action so that the user has to select one of the actions to continue the conversation.

The SuggestedActions component would have to be moved outside of the SendBox to accomplish this.

Describe alternatives you have considered

Additional context Original ask here: https://stackoverflow.com/questions/58116813/while-showing-button-choices-at-that-time-i-need-to-hide-sendbox-in-bot-framewo/

Ideally customers should be able to hide or disable the input field when Web Chat is displaying suggested actions. The code below is functional, but it also hides suggested actions.

const [hideSendBox, setHideSendBox] = useState(false);
const store = createStore(
  {},
  () => next => action => {

    if (action.type === 'DIRECT_LINE/SET_SUGGESTED_ACTIONS') {
      if (action.payload.suggestedActions.length) {
        setHideSendBox(true);
      } else {
        setHideSendBox(false);
      }
    }
    return next(action);
  }
)

return <ReactWebChat directLine={directLine} store={store} styleOptions={{hideSendBox}} />

[Enhancement]

[Edit by @corinagum] Please add +1 to this thread if this is something you are looking to have available in your version of Web Chat.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:12
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

8reactions
corinagumcommented, Sep 26, 2019

Alright, sounds good. Let’s see what kind of traction we get on this, and go from there.

If anyone is looking for this feature, please add your +1 to this thread so we know that people want this feature.

4reactions
sw353552commented, Dec 9, 2019

Is there an update on this yet? ‘hideSendBox’ flag is also hiding the suggested actions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Hide / Show the Sendbox whenever the bot replies ...
in the back end using c# code, I'm sending the suggested actions.below is the code for the same. private static async Task ...
Read more >
Add card actions in a bot - Teams - Microsoft Learn
Card actions are different than suggested actions in Bot Framework ... The actions do not work while the card is in the compose...
Read more >
<input>: The Input (Form Input) element - HTML
The <input> HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide...
Read more >
Specify the input method type - Android Developers
Specify the keyboard type; Enable spelling suggestions and other behaviors; Specify the input method action; Provide auto-complete ...
Read more >
iOS 16 - New Features - Apple
See all the latest features, enhancements, app updates, and more in iOS 16 for ... iOS suggests Home Screen pages with apps and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found