SharePoint 调查,根据答案询问 n 次

发布于 2024-07-21 13:22:17 字数 212 浏览 6 评论 0原文

我们需要进行一项调查,其中包含以下内容:

  • 问题 1:您拥有多少辆汽车?
  • 答案:下拉菜单(值范围为 1 - 5)

根据此问题的答案,我们需要将同一组问题问 5 次。 例如,您的汽车的颜色和品牌是什么……等等。

有没有办法通过使用 OOB 功能/InfoPath 表单的 SharePoint 来实现此目的?

We need to implement a survey which will allow the following:

  • Question 1: How many cars do you own?
  • Answer: Dropdown (Values range from 1 - 5)

Based on the answer to this question, we need the same set of questions asked 5 times.
For example, what is the colour and make of your car...and so on.

Is there a way to achieve this with SharePoint using the OOB features/InfoPath forms?

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

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

发布评论

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

评论(1

面犯桃花 2024-07-28 13:22:17

要成为 OOTB,我看到两个选项:InfoPath(如果您有 MOSS Enterprise,则最好是 Forms Services)或调查列表。 InfoPath 解决方案会好得多,但设置时间要长一些(可能需要几个小时而不是 30 分钟)。 此外,如果您没有 MOSS Enterprise,则无法使用 InfoPath Forms Services,并且每个人都必须在其桌面上安装 InfoPath 客户端。

对于 InfoPath,这只是设计具有所需逻辑的表单。 您不需要任何后面的代码。 我只想问你最初的问题,然后为后续的每组问题准备一个部分。 在各部分的显示选项卡中,您可以使用条件逻辑来根据第一个问题的答案隐藏该部分。 如果您愿意,您的所有答案都可以提升到 SharePoint 表单库字段。

我认为调查列表会有点混乱(技术术语)。 它的分支逻辑能力有限,因此它的工作方式可能有点奇怪。 在调查中,您可以根据该问题的答案分支到另一个问题。 所以,你可以这样排列你的问题(基本上是倒着排列):

  1. 你拥有多少辆汽车?
    (如果 4 分支到问题 #4,如果 3 分支到问题 #6,如果 2 分支到 #8,如果 1 分支到 #10)
  2. 汽车 #5 问题 #1
  3. 汽车 #5 问题 #2
  4. 汽车 #4 问题 #1
  5. 汽车#4问题#2
  6. 汽车#3问题#1
  7. 汽车#3问题#2
  8. 汽车
  9. #2问题#1
  10. 汽车#2问题#2汽车#1问题#1
  11. 汽车#1问题#2

也许其他人可以想出更好的方案调查列表的解决方案?

To be OOTB, I see two options: InfoPath (ideally Forms Services if you have MOSS Enterprise) or a Survey list. The InfoPath solution will be much nicer, but take a little longer to set up (maybe a couple of hours vs 30 minutes). Also, if you don't have MOSS Enterprise then you can't use InfoPath Forms Services and everyone has to have the InfoPath client installed on their desktop.

For InfoPath, this is just designing the form with the needed logic. You won't need any code behind. I would simply have your initial question, then have a section for each subsequent set of questions. In the display tab of the sections you can have conditional logic to hide the section based on the answer to the first question. All of your answers can be promoted to SharePoint form library fields if you desire.

I think the Survey list will be a little more of a kludge (technical term). It has limited branching logic capability so it might work a little odd. In the Survey you can branch to another question based on the answer for that question. So, you could order your questions as such (basically backwards):

  1. How many cars do you own?
    (if 4 branch to question #4, if 3 branch to question #6, if 2 branch to #8, if 1 branch to #10)
  2. Car #5 question #1
  3. Car #5 question #2
  4. Car #4 question #1
  5. Car #4 question #2
  6. Car #3 question #1
  7. Car #3 question #2
  8. Car #2 question #1
  9. Car #2 question #2
  10. Car #1 question #1
  11. Car #1 question #2

Maybe someone else can come up with a better solution with the Survey list?

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