英文:
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
根据您的评论,您应该配置切换控件如下:
- Displaymode:
Displaymode.View
- Default:
Value(Textbox1.Text) > Value(Textbox2.Text)
英文:
Based on your comment, you should configure your toggle control like this:
- Displaymode:
Displaymode.View
- Default:
Value(Textbox1.Text) > Value(Textbox2.Text)
答案2
得分: 0
这里是解决这个问题的另一种方法:
如果你期望用户在文本输入控件中只输入数字,最好使用文本输入控件的数字格式,如:
然后你可以简单地将切换控件的Default
属性设置为:
Textbox1.Text > Textbox2.Text
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论