如何在PowerApps中按下TextInput上的”return”键来触发”button”

huangapple go评论67阅读模式
英文:

How to trigger a "button" in PowerApps upon hitting the "return" key in a TextInput

问题

我有一个相当简单的应用程序。我有一个文本输入字段和一个执行任务的按钮。当用户在文本输入字段中输入文本然后点击按钮时,应用程序可以正常工作。

问题是,我希望每当用户在文本输入字段中按下"Enter"键时,按钮的功能都会被执行。我尝试搜索答案,但实际上没有找到解决方法,尽管这应该是一个相当常见的用例。

英文:

I am having a quite easy application. I have a text input field and button to execute a task. The app works fine when the user enter some text in the text input field - and then click the button.

The problem is, that I want the button functionality to be executed every time a user enter the "Enter" key in the text input field. I tried to search for an answer but did not really find a solution, even if it should be quite common use case.

答案1

得分: 1

抱歉,这目前还不受 Microsoft Power Apps 支持。

这是 Power Apps 画布应用程序中文本输入的已知限制。

查看以下链接以获取更多信息和一些解决方法:

  1. 使用回车键搜索输入
  2. 使用回车键提交表单

此外,您可以投票支持在不久的将来实施此功能:

按回车键提交

英文:

Unfortunately, this is not yet supported by Microsoft Power Apps.

This is a known limitation of text input in Power Apps canvas application.

Check below links for more information and some workarounds:

  1. Using Enter to Search with input
  2. Submit Form with the Enter Key

Also, you can vote on this idea for implementing this feature in near future:

Press enter to submit

huangapple
  • 本文由 发表于 2023年4月19日 23:37:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76056399.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定