如何保存内容类型的 Word 模板而不填写必填字段

发布于 2024-07-08 11:01:27 字数 274 浏览 4 评论 0原文

我有一个包含必填字段的内容类型。 我已将 Word 文档与内容类型关联起来作为模板。 我现在想要编辑 Word 模板,但 Word 不允许我在不填写必填字段的情况下保存模板。 但是,如果我填写必填字段并保存文档,那么当您创建新文档时,这些字段将填充我的值。 这不好,因为我希望创建新文档时字段为空 - 我希望用户被迫填写这些值。

我可以通过更新列并使它们成为可选、编辑单词模板、保存模板和模板来更新模板。 然后将列更改回所需的列。 这是 PITA - 一定有更好的方法,有人知道它是什么吗?

I have a content type that has required fields. I have associated Word document with the content type as a template. I now want to edit the Word template, but word won't allow me to save the template without filling in the required fields. However, if I fill in the required fields and save the document, then those fields get populated with my values when you create a new document. This isn't good because I want the fields to be blank when a new document is created - I want the users to be forced to fill in those values.

I can update the templace by updating the colums and making them optional, editing the word template, saving the template & then changing the columns back to required. This is a PITA - there's got to be a better way, does anyone know what it is?

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

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

发布评论

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

评论(3

仅此而已 2024-07-15 11:01:28

我一直在使用此解决方法:当我编辑模板时(即转到内容类型设置 --> 高级设置 --> 编辑模板),我进行更改并在本地保存文件。 然后,在单击“编辑模板”链接的同一页面上,我上传本地保存的副本。 将其保存在本地可以避免在您尝试将其保存回 SharePoint 时发生的验证。 但验证仍然适用于该内容类型的任何新文档。 因此无需关闭设置 在! :)

I've been using this work around: When I edit the template (ie go to the content type settings --> Advanced settings --> Edit Template), I make my changes and save the file locally. Then, on the same page that I clicked the "Edit Template" link, I upload the copy that I saved locally. Saving it locally avoids the validation that happens when you try to save it back to SharePoint. But the validation still gets applied to any new documents of that content type. So no need to toggle the settings off & on! :)

只是偏爱你 2024-07-15 11:01:28

您是否尝试过将文档保存为普通文档内容类型,进行更改,保存,然后返回旧版本模板所在的位置?

Have you tried saving the document as a normal document content type, making the changes, saving it, then moving back over the top of where the old version of the template was?

宫墨修音 2024-07-15 11:01:28

我发现的唯一解决方案是修改库级别的文档模板。 只需上传所需内容类型的新文档模板即可。
但是,如果您想在不同的文档库中重复使用一种相同的内容类型,则此方法将不起作用。

The only solution I've found is to modify document templates on library level. Just upload a new document template for the required content type.
However, this will not work if you'd like to re-use one and same content type across different document libraries.

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