定制讨论区报名表 [英] Custom Discussion Board Entry Form

查看:78
本文介绍了定制讨论区报名表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对SharePoint修改非常陌生,但在HTML5 / JS中有相当广泛的背景。我的团队正在尝试为员工创建一个讨论板,以便在讨论区提交回复,但我们希望为员工创建一个自定义表单
,以填写必要的字段,这些字段将创建对讨论的预设响应。有没有办法让身体成为我们创建的字段的计算字段?创建自定义javascript以将所需字段合并到
正文中会更容易吗? 

I am extremely new to SharePoint modifications, but have a pretty extensive background in HTML5/JS. My team is attempting to create a discussion board for employees to submit replies on a discussion board, but we want to create a custom form for the employee to fill out with required fields that will create a canned response to the discussion. Is there a way to have the body be a calculated field based on the fields we create? Would it be easier to create custom javascript to combine the required fields into the body? 

我确信我们不是第一个提出此请求的人,但是谷歌搜索一直没有帮助。任何帮助将不胜感激。

I'm sure we aren't the first to have this request, but Googling has been less than helpful. Any help would be appreciated.

谢谢!

推荐答案

如果我正确理解你的问题,我通常会使用您描述的javascript选项。我使用这种技术来严格约束用户输入,然后使用jQuery自定义项目数据的显示到正文中。 


If I understand your question correctly, I normally go with the javascript option you described. I use this technique to tightly constrain the user input and then use jQuery to customize the display of the item's data into a the body. 

请记住,我的方式就是我通过类似的自定义请求破解了我的方式。 有一百万种不同的方法可以做到这一点。

Please bare in mind that mine is just how I've hacked my way though similar customization requests.  There are a million different ways to do this.

我通过添加自定义内容Web部件和脚本编辑器Web部件来修改默认显示页面。显示页面。 我不删除默认列表显示Web部件,因为我希望SP为我呈现其所有的goop代码。 这样我就可以在列表值上挖出
,而不会进入一堆重定向或Ajax的东西。 


I modify the default display page by adding a custom content web part and a script editor web part to the display page.  I don't remove the default list display web part since I want SP to render all its goop code for me.  That way I can scoop up the list values without getting into a bunch of redirection or Ajax stuff. 

我使用我想用于数据演示的HTML填充自定义内容Web部件,将DIV标签留作我想要的占位符要显示的值。

I fill the custom content web part with the HTML I want to use for the data presentation leaving DIV tags as placeholders for where I want the values to appear.

然后,我使用脚本编辑器Web部件调用jQuery来隐藏视图中的默认列表视图Web部件,并将所需的值读入脚本。接下来,脚本将这些值写入填充我在自定义内容Web部件中创建的DIV的DOM中。 

Then, I use the script editor web part to call jQuery to hide the default list view web part from view and read the desired values into a script. Next, the script writes those values into the DOM populating the DIVs I created in the custom content web part. 

我担心我没有任何简洁的代码示例,但这就是它的主旨。 

I'm afraid I don't have any concise code examples but that's the jist of it. 


这篇关于定制讨论区报名表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆