在SharePoint 2013中,如何在计算列中使用单选按钮? [英] In SharePoint 2013, how can I use radio buttons in calculated column?

查看:60
本文介绍了在SharePoint 2013中,如何在计算列中使用单选按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

In SharePoint 2013, how can I use radio buttons in calculated column? I have implemented below code in formula and keep its return type integer

="&ltinput type='radio' width='50px' name='DocumentRequired' id='rdRequired_' value='RequiredForChk' checked&gt &ltinput type='radio' width='50px' id='rdNotRequired_' name='DocumentRequired_' value='NotRequiredForChk' &gt"_

但这不适用于单选按钮单击.

But it is not working on radio button click.

在此先感谢

推荐答案

rajesh sharepoint技术人员,

Hi rajesh sharepoint techie,

在SharePoint中,将来将不支持可添加自定义代码的计算列的功能.因此,我们不建议在计算列中添加自定义代码.

In SharePoint, the function of the calculated column which can add custom code will not be supported in the future. So, we do not recommend adding custom code in calculated column.

我在SharePoint 2013环境中测试了您帖子中的代码,我也遇到了同样的问题.单击单选按钮无法正常工作.

And I test the code in your post in my SharePoint 2013 environment, I encounter the same issue with you. The click of the radio button cannot work.

有解决方法.

1.如果要使用单选按钮,则可以创建选择列类型并选择单选按钮".

1. If you want to use radio buttons, you could create choice column type and select "radio buttons".

2.您还可以使用JS Link自定义字段类型.有关更多详细信息,请参阅下面的文章.

2. And you also could use JS Link to customize the field type. For more detailed information, refer to the article below.

客户端渲染(JS链接)代码示例.

Client-side rendering (JS Link) code samples.

https://code.msdn.microsoft.com/office/Client-side -rendering-JS-2ed3538a

3.通过页面中的内容编辑器Web部件或脚本编辑器Web部件添加自定义代码.

3. Add custom code by content editor web part or script editor web part in the page.

最诚挚的问候,

萨拉范


这篇关于在SharePoint 2013中,如何在计算列中使用单选按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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