电源应用:将下拉列表的默认值设置为第二个项目
我正在使用Power Apps应用程序中的下拉列表。下拉的默认值是这样定义的:
if(form1.mode = formmode.new,“ - ”,parent.default)
可能的选项为:
-
- person一个
- 人B
- 人C
我想将默认值更改为下拉列表中的第二个选项。我该怎么做?我不想进行“人a”,因为列表是动态的并且可以改变。我尝试使用选择
,但无法使其工作。
感谢您的帮助!
I'm using a dropdown in my Power Apps app. The default value for the dropdown is defined this way:
If(Form1.Mode = FormMode.New, "-", Parent.Default)
The possible options are:
-
- Person A
- Person B
- Person C
I would like to change the default value to the second option in the dropdown list. How would I go about doing that? I don't want to hardcode "Person A", because the list is dynamic and can change. I tried playing with Choices
but couldn't get it to work.
Thanks for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您需要从数据源或类似的集合中提供下拉项(我将用于示例的集合,但可以与数据源一起使用):
然后,您设置项目属性:
之后,您使用默认值第2个项目的“最后”和“ firstn”的组合:
祝你有美好的一天
First, you need to provide the Dropdown items from a datasource or a collection like this (I'll use a collection for the example but will work the same with a datasource) :
Then, you set your Items property :
After that, you use a combinaison with "Last" and "FirstN" for the 2th item in default value:
Have a good day