Articles with the tag:
Close
Changelog
Close
Articles with the tag:
Close
Try in the cloud
Try in the cloud

Insert content controls

ONLYOFFICE Document Editor allows you to insert classic content controls, i.e. they are fully backward compatible with the third-party word processors such as Microsoft Word.

ONLYOFFICE Document Editor supports the following classic content controls: Plain Text, Rich Text, Picture, Combo box, Drop-down list, Date, Check box.

  • Plain Text is an object containing text that cannot be formatted. Plain text content controls cannot contain more than one paragraph.
  • Rich Text is an object containing text that can be formatted. Rich text content controls can contain several paragraphs, lists, and objects (images, shapes, tables etc.).
  • Picture is an object containing a single image.
  • Combo box is an object containing a drop-down list with a set of choices. It allows choosing one of the predefined values from the list and edit the selected value if necessary.
  • Drop-down list is an object containing a drop-down list with a set of choices. It allows choosing one of the predefined values from the list. The selected value cannot be edited.
  • Date is an object containing a calendar that allows choosing a date.
  • Check box is an object that allows displaying two states: the check box is selected and the check box is cleared.

Adding content controls

Create a new Plain Text content control
  1. position the insertion point within the text line where the content control should be added,
    or select a text passage to transform it into a content control.
  2. switch to the Insert tab of the top toolbar.
  3. click the arrow next to the
    Content Controls icon.
  4. choose the Plain Text option from the menu.

The content control will be inserted at the insertion point within existing text line. Replace the default text within the content control ("Your text here") with your own text: select the default text, and type in a new text or copy a text passage from anywhere and paste it into the content control. The Plain text content controls do not allow adding line breaks and cannot contain other objects such as images, tables, etc.

New plain text content control

Create a new Rich Text content control
  1. position the insertion point within the text line where the content control should be added,
    or select one or more of the existing paragraphs you want to become the control contents.
  2. switch to the Insert tab of the top toolbar.
  3. click the arrow next to the
    Content Controls icon.
  4. choose the Rich Text option from the menu.

The control will be inserted in a new paragraph. Replace the default text within the control ("Your text here") with your own one: select the default text, and type in a new text or copy a text passage from anywhere and paste it into the content control. Rich text content controls allow adding line breaks, i.e. can contain multiple paragraphs as well as some objects, such as images, tables, other content controls etc.

Rich text content control

Create a new Picture content control
  1. position the insertion point within a line of the text where you want the control to be added.
  2. switch to the Insert tab of the top toolbar.
  3. click the arrow next to the
    Content Controls icon.
  4. choose the Picture option from the menu - the content control will be inserted at the insertion point.
  5. click the
    image icon in the button above the content control border - a standard file selection window will open. Choose an image stored on your computer and click Open.

The selected image will be displayed within the content control. To replace the image, click the image icon in the button above the content control border and select another image.

Create a new Combo box or Drop-down list content control

The Combo box and Drop-down list content controls contain a drop-down list with a set of choices. They can be created amost in the same way. The main difference between them is that the selected value in the drop-down list cannot be edited, while the selected value in the combo box can be replaced.

  1. position the insertion point within a line of the text where you want the control to be added.
  2. switch to the Insert tab of the top toolbar.
  3. click the arrow next to the
    Content Controls icon.
  4. choose the Combo box or Drop-down list option from the menu - the control will be inserted at the insertion point.
  5. right-click the added control and choose the Content control settings option from the contextual menu.
  6. in the the opened Content Control Settings window, switch to the Combo box or Drop-down list tab, depending on the selected content control type.

    Combo box settings window

  7. to add a new list item, click the Add button and fill in the available fields in the the opened window:

    Combo box - adding value

    1. specify the necessary text in the Display name field, e.g. Yes, No, Other. This text will be displayed in the content control within the document.
    2. by default, the text in the Value field corresponds to the one entered in the Display name field. If you want to edit the text in the Value field, note that the entered value must be unique for each item.
    3. click the OK button.
  8. you can edit or delete the list items by using the Edit or Delete buttons on the right or change the item order using the Up and Down button.
  9. when all the necessary choices are set, click the OK button to save the settings and close the window.

New combo box content control

You can click the arrow button in the right part of the added Combo box or Drop-down list content control to open the item list and choose the necessary one. Once the necessary item is selected from the Combo box, you can edit the displayed text by replacing it with your text entirely or partially. The Drop-down list does not allow editing the selected item.

Combo box content control

Create a new Date content control
  1. position the insertion point within the text where content control should be added.
  2. switch to the Insert tab of the top toolbar.
  3. click the arrow next to the
    Content Controls icon.
  4. choose the Date option from the menu - the content control with the current date will be inserted at the insertion point.
  5. right-click the added content control and choose the Content control settings option from the contextual menu.
  6. in the opened Content Control Settings window, switch to the Date format tab.

    Date settings window

  7. choose the necessary Language and select the necessary date format in the Display the date like this list.
  8. click the OK button to save the settings and close the window.

You can click the arrow button in the right part of the added Date content control to open the calendar and choose the necessary date.

Date content control

Create a new Check box content control
  1. position the insertion point within the text line where the content control should be added.
  2. switch to the Insert tab of the top toolbar.
  3. click the arrow next to the
    Content Controls icon.
  4. choose the Check box option from the menu - the content control will be inserted at the insertion point.
  5. right-click the added content control and choose the Content control settings option from the contextual menu.
  6. in the opened Content Control Settings window, switch to the Check box tab.

    Check box settings window

  7. click the Checked symbol button to specify the necessary symbol for the selected check box or the Unchecked symbol to select how the cleared check box should look like. The Symbol window will open. To learn more on how to work with symbols, please refer to this article.
  8. when the symbols are specified, click the OK button to save the settings and close the window.

The added check box is displayed in the unchecked mode.

If you click the added check box it will be checked with the symbol selected in the Checked symbol list.

Note: The content control border is only visible when the control is selected. The borders do not appear on a printed version.

Moving content controls

Content controls can be moved to another place in the document: click the button on the left of the control border to select the control and drag it without releasing the mouse button to another position in the text.

Moving content control

You can also copy and paste content controls: select the necessary control and use the Ctrl+C/Ctrl+V key combinations.

Editing plain text and rich text content controls

Text within plain text and rich text content controls can be formatted by using the icons on the top toolbar: you can adjust the font type, size, color, apply decoration styles and formatting presets. It's also possible to use the Paragraph - Advanced settings window accessible from the contextual menu or from the right sidebar to change the text properties. Text within rich text content controls can be formatted like a regular text, i.e. you can set line spacing, change paragraph indents, adjust tab stops, etc.

Changing content control settings

No matter which type of content controls is selected, you can change the content control settings in the General and Locking sections of the Content Control Settings window.

To open the content control settings, you can proceed in the following ways:

  • Select the necessary content control, click the arrow next to the
    Content Controls icon on the top toolbar and select the Control Settings option from the menu.
  • Right-click anywhere within the content control and use the Content control settings option from the contextual menu.

A new window will open. Ot the General tab, you can adjust the following settings:

Content Control settings window - General

  • Specify the content control Title, Placeholder, or Tag in the corresponding fields. The title will be displayed when the control is selected. The placeholder is the main text displayed within the content control element. Tags are used to identify content controls so that you can make a reference to them in your code.
  • Choose if you want to display the content control with a Bounding box or not. Use the None option to display the control without the bounding box. If you select the Bounding box option, you can choose the Color of this box using the field below. Click the Apply to All button to apply the specified Appearance settings to all the content controls in the document.
  • Check the Remove content control when contents are edited box to remove the control and leave its contents as a plain text or graphical object when the control contents are edited.

On the Locking tab, you can protect the content control from being deleted or edited using the following settings:

Content Control settings window - Locking

  • Content control cannot be deleted - check this box to protect the content control from being deleted.
  • Contents cannot be edited - check this box to protect the contents of the content control from being edited.

For certain types of content controls, the third tab that contains the specific settings for the selected content control type is also available: Combo box, Drop-down list, Date, Check box. These settings are described above in the sections about adding the corresponding content controls.

Click the OK button within the settings window to apply the changes.

It's also possible to highlight content controls with a certain color. To highlight controls with a color:

  1. Click the button on the left of the control border to select the control,
  2. Click the arrow next to the
    Content Controls icon on the top toolbar,
  3. Select the Highlight Settings option from the menu,
  4. Choose the required color from the available palettes: Theme Colors, Standard Colors or specify a new Custom Color. To remove previously applied color highlighting, use the No highlighting option.

The selected highlight options will be applied to all the content controls in the document.

Removing content controls

To remove a content control and leave all its contents, select a content control, then proceed in one of the following ways:

  • Click the arrow next to the
    Content Controls icon on the top toolbar and select the Remove content control option from the menu.
  • Right-click the content control and use the Remove content control option from the contextual menu.

To remove a control and all its contents, select the necessary control and press the Delete key on the keyboard.

Return to previous page
Try now for free Try and make your decision No need to install anything
to see all the features in action