如何设置强制选择以导航到下一个屏幕?

发布于 2025-01-20 05:04:18 字数 1134 浏览 4 评论 0原文

我的应用程序的主屏幕有三个问题:

1-一个在名为 Office 的下拉列表中有6个选择的问题。

2-用户在其中选择一个具有6个复选框的部门的问题。

3-一个在下拉列表中有9个选择的问题,名为 type

完成用户后,选择答案 下一个 按钮可以按下。 但是,我希望调查只允许用户在为每个问题找到答案后进入下一个屏幕。

这是我在按钮的 OnSelect 部分中拥有的代码。

switch(type.selected.value,“ 360”,导航('360',screentEntransition.none)); switch(type.selected.value,“ report”,“ navigate”,navigate(reportrequest_main,screentEntRansition.none.none)); switch (type.selected.value,“ bulk”,导航(bulk,screentStransition.none)); switch(type.selected.value,“ changereport”,navigate(changereport,scrementStransition.none)); switch(type.selected.selected.value.value ,“分组”,导航(分组,screenTransition.none)); switch(type.selected.value,“ recode”,navigate(recode,screode,screentRansition.none)); switch(type.selected.selected.value,value,“ view”,导航,导航(vp,screentRansition.none))

”在此处输入图像说明”

The main screen of my app has three questions:

1- A question with 6 choices in a dropdown named Office.

2- A question where the user picks one of the departments with 6 checkboxes.

3- A question with 9 choices in a dropdown named Type.

When the user is done selecting the answers the Next button can be pressed.
However, I would like the survey to only allow the user to go to the next screen after he picks an answer for each question.

Here is the code that I have in the ONSELECT section of the button.

Switch(Type.Selected.Value,"360", Navigate('360',ScreenTransition.None));Switch(Type.Selected.Value,"Report", Navigate(ReportRequest_Main,ScreenTransition.None));Switch(Type.Selected.Value,"Bulk", Navigate(Bulk,ScreenTransition.None));Switch(Type.Selected.Value,"Changereport", Navigate(ChangeReport,ScreenTransition.None));Switch(Type.Selected.Value,"Grouping", Navigate(Grouping,ScreenTransition.None));Switch(Type.Selected.Value,"Recode", Navigate(Recode,ScreenTransition.None));Switch(Type.Selected.Value,"View", Navigate(VP,ScreenTransition.None))

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

为你拒绝所有暧昧 2025-01-27 05:04:18

您可以在“下一步”按钮的 Visible 或 DisplayMode 属性中使用以下模式的条件:

Not(Or(IsBlankOrError(Type.SelectedItems), IsBlankOrError(Office.SelectedItems),...))

You could use a condition of the below pattern in the Next button's Visible or DisplayMode property:

Not(Or(IsBlankOrError(Type.SelectedItems), IsBlankOrError(Office.SelectedItems),...))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文