Skip to content

[Dialogs] InputHint is hardcoded for AttachmentPrompt as expecting_input #1670

Closed
@denscollo

Description

@denscollo

Version

4.12.0

Describe the bug

In the AttachmentPrompt class, the prompt.input_hint is set as expecting_input replacing any value the user could set.
This behavior is not present in either .NET or JS SDKs.

To Reproduce

Steps to reproduce the behavior:

  1. Using the sample: 05.multi-turn-prompt:

    • Open dialogs/user_profile_dialog.py file.
    • Add the following line to the imports section from botbuilder.schema import InputHints.
    • Update picture_step method adding input_hint=InputHints.accepting_input to the message as can be seen below:
      image
    • Save the changes.
    • Open the console in the bots folder and run the following commands:
      • python -m pip install -r requirements.txt
      • python app.py
  2. Open BotFramework Emulator and connect to your bot.

  3. Follow the dialog flow until the profile picture step.

  4. See the activity in the Inspection panel and check the value of the inputHint property.
    image

Expected behavior

The bot should send the activity with the inputHint property that was set for the message in the prompt options.

Metadata

Metadata

Assignees

Labels

Area: SDKGeneral SDK issues that don't clearly map to other areas (e.g.: helper methods)ExemptFromDailyDRIReportUse this label to exclude the issue from the DRI report.Team: SouthworksbugIndicates an unexpected problem or an unintended behavior.needs-triageThe issue has just been created and it has not been reviewed by the team.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions