内容类型以填充文档提交中的列(EditForm.aspx) [英] Content Type to populate columns on document submission (EditForm.aspx)

查看:87
本文介绍了内容类型以填充文档提交中的列(EditForm.aspx)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是
创建了一个包含100种不同文档类型的文档库。 我用
为每种文档类型创建了一种内容类型,因为每种文档类型都有b
不同的列。 示例:< o:p>< / o:p>


内容类型:评估< o:p>< / o:p>


列:文档类型,位置,

客户,公司,日期< o:p> < / o:p>


当我向/ b $ b文档库提交文档时,我在upload.aspx表单上选择了文档。点击确定,然后按
访问editform.apsx。 我在这里向我展示了我的内容类型。 

根据我选择的内容类型,我会看到不同的列。
来填写。  



< o:p>< / o:p>


在上面的示例内容类型中,

Appraisals < o:p>< / o:p> ;


当我选择该内容类型I

希望文档类型列填充带有
表格的Appraisals。< o:p>< / o:p>


列文档类型是一个包含所有不同类型文档的
选择列。< o:p>< / o: p>


基本上每种内容类型都与文件类型完全匹配。< o:p>< / o:p>


内容类型   文档类型列< o:p>< / o:p>


评估       评估< o:p>< / o:p>


销售单      销售单


< o:p>< / o:p>


< o:p>< / o:p>


我想在提交文件时删除用户需要删除的
附加步骤,选择文档类型。


< p style ="">


谢谢,< o:p>< / o:p>

解决方案

你好,


你可以在编辑属性页面上添加脚本编辑器Web部件并通过javascript设置文档类型:如果它被渲染为html select元素你可以这样做这使用纯javascript:

 document.getElementById('lst')。value ='foo'; 


I
have created a document library with 100's of different document types.  I
created a content type for each document type as each document type has
different columns.  Example:<o:p></o:p>

Content Type: Appraisals<o:p></o:p>

Columns: Document Type, Location,
Customer, Company, Date<o:p></o:p>

When I submit a document to the
document library I select the document on the upload.aspx form. click ok and
get to the editform.apsx.  Here i am presented my content types. 
Depending on which content type I select I am presented with different columns
to fill out.  

<o:p></o:p>

In the sample content type above,
Appraisals, <o:p></o:p>

When I select that content type I
would like the Document Type column to be populated with Appraisals with the
form.<o:p></o:p>

The column Document Type is a
choice column with all the different type of documents.<o:p></o:p>

Basically each content type has
exact match for the Document Type.<o:p></o:p>

Content Type    Document Type Column<o:p></o:p>

Appraisals        Appraisals<o:p></o:p>

Bill of Sale       Bill of Sale

<o:p></o:p>

<o:p></o:p>

I would like to remove that
additional step, selecting document type, for users when submitting a document.

Thank you,<o:p></o:p>

解决方案

hello,

you may add script editor web part on edit properties page and set Document Type via javascript: if it is rendered as html select element you may do it like this using pure javascript:

document.getElementById('lst').value = 'foo';​​​​​​​​​​


这篇关于内容类型以填充文档提交中的列(EditForm.aspx)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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