Get Started
Plugins
Macros
More information

Load custom fields

Description

Loads custom fields from the document.

The fields should be already added to the document with the Example add custom fields plugin.

Plugin type: visual, non-system.

Supported editors: documents.

LoadCustomFields
Installation

Download this plugin from GitHub and install it following the desktop, on-premises, or cloud installation instructions.

Usage
  1. Open the Plugins tab and press Example load custom fields.
  2. To answer a simple question type your answer in the type here... field.
  3. To answer a question with drop down variants select one option.
  4. Press the Next button to go to the next question or the Back button to go back to the previous one.
  5. When all the questions are answered, the plugin will be automatically closed. Your answers will appear in the document.
Plugin structure

Repository on GitHub: https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/example_customfields_load.

  1. config.json, index.html and code.js
  2. Icons
Config
{
    "name" : "Example loading custom fields",
    "guid" : "asc.{E5A81B17-C871-4C4B-A90A-62D3A7EC0751}",

    "variations" : [
        {
            "description" : "Example loading custom fields",
            "url"         : "index.html",

            "icons"           : ["icon.png", "icon@2x.png", "icon2.png", "icon2@2x.png"],
            "isViewer"        : true,
            "EditorsSupport"  : ["word"],

            "isVisual"        : true,
            "isModal"         : true,
            "isInsideMode"    : false,

            "initDataType"    : "ole",
            "initData"        : "",

            "isUpdateOleOnResize" : true,

            "buttons"         : []
        }
    ]
}
Methods and events

The main plugin code is located here.

Support

If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.