You can run the samples in Script Lab to instantly see the result in the task pane or document, examine the samples to learn how the API works, and even use samples to prototype your own add-in. Use Script Lab to get started quickly with a collection of built-in samples that show how to complete tasks with the API. See the table of contents for the complete list of available articles.įor hands-on experience using the Word JavaScript API to access objects in Word, complete the Word add-in tutorial.įor detailed information about the Word JavaScript API object model, see the Word JavaScript API reference documentation. Use other articles in this section of the documentation to learn how to get the whole document from an add-in, use search options in your Word add-in to find text, and more. See Word JavaScript object model in Office Add-ins for information about important programming concepts. For information about the Common API, see Common JavaScript API object model. This section of the documentation focuses on the Word JavaScript API, which you'll use to develop the majority of functionality in add-ins that target Word on the web, or Word 2016 and later.
![microsoft word content control tutorial microsoft word content control tutorial](https://i.redd.it/4jicru27tzk61.png)
Introduced with Office 2016, the Word JavaScript API provides strongly-typed objects that you can use to access objects and metadata in a Word document.Ĭommon APIs: Introduced with Office 2013, the Common API can be used to access features such as UI, dialogs, and client settings that are common across multiple types of Office applications. Word JavaScript API: These are the application-specific APIs for Word. You can also select a content control, grab it by the three-dot icon, then drag and drop into the template.A Word add-in interacts with objects in Word by using the Office JavaScript API, which includes two JavaScript object models: Copy the content controls you need from the sample document to the template. In the rule settings, click Edit template.Ĥ. Leave it for now and go to the next step.ģ. There are two ways that you can lock a content control. For example, you can limit the text that a user can insert into a content control, force a user to insert content into a content control, or lock a content control. In the Document template section, click Generate sample document.Ī sample document is opened. This video provides a tutorial on the basic functions of creating and modifying a rich text content control in Microsoft Word. Sometimes you might want to limit how a user works with a content control. In the JungleDocs dashboard, click on the drop-down menu arrow next to the rule containing the template you want to edit, and click Edit From Existing rule (or Edit Base rule for rules in the New tab, or Edit Report rule for rules in the Reports tab).Ģ. It is a document that contains all the content controls that are available for the related content type or list.ġ. Here's the resulting document, with the content control processed already.Īdding content controls from a sample documentĪ sample document is a quick way to set up your template so that it is automatically populated with SharePoint data. In the example, we've entered the Name field value: DOC-001. Open JungleDocs and run a rule that uses this template to create a new document. This way, you will be able to see the Tag field value without opening content control properties.ħ. We recommend entering the same value in the Title field, too.
![microsoft word content control tutorial microsoft word content control tutorial](https://gregmaxey.com/images/word_tips/cc_5.png)
Picture Content Control can fill the content control with a single picture.Rich Text Content Control can contain custom formatted text or other items, such as tables, pictures, or other content controls.However, you can change the formatting by making changes to the surrounding formatting. Plain Text Content Control is limited to content that cannot contain any formatting.Select one of the three types of content controls to be inserted into the template. Turn on the Developer tab in Word: click File > Options > Customize Ribbon, then check the Developer box and click OK.ģ.
![microsoft word content control tutorial microsoft word content control tutorial](https://www.thewindowsclub.com/wp-content/uploads/2021/05/how-to-create-drop-down-list-in-word-2.png)
Open your Word template (.docx format).Ģ. In this tutorial, you will learn how to do this.ġ. It is also possible to manually add your own content controls to a document template. In JungleDocs you will find that Sample Documents will already include content controls so that you can start automating your documents with ease. Applies to JungleDocs for SharePoint 2010-2019.įor a similar tutorial for JungleDocs for Office 365, click here.Ĭontent controls can be a great way to automate your document creation.