使用 Powerapps 中的切换按钮。

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

Using toggle in Powerapps

问题

I am looking to use toggle and turn on/off based on if condition, I tried the following code but dint work as expected.

If('User Input' > 'Output - Max' = "Yes","No")

英文:

I am looking to use toggle and turn on/off based on if condition, I tried the following code but dint work as expected.

If('User Input' > 'Output - Max' = "Yes","No")

答案1

得分: 0

根据您的评论,您应该配置切换控件如下:

  1. Displaymode: Displaymode.View
  2. Default: Value(Textbox1.Text) > Value(Textbox2.Text)
英文:

Based on your comment, you should configure your toggle control like this:

  1. Displaymode: Displaymode.View
  2. Default: Value(Textbox1.Text) > Value(Textbox2.Text)

答案2

得分: 0

这里是解决这个问题的另一种方法:

如果你期望用户在文本输入控件中只输入数字,最好使用文本输入控件的数字格式,如:

使用 Powerapps 中的切换按钮。

然后你可以简单地将切换控件的Default属性设置为:

Textbox1.Text > Textbox2.Text
英文:

Here's another way to solve this problem:

If you are expecting users to enter only numbers in the text input control, it is better to use the Number format for your text input control like:

使用 Powerapps 中的切换按钮。

Then you can set Default property of toggle control simply to:

Textbox1.Text > Textbox2.Text

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

发表评论

匿名网友

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

确定