Skip to content

Configuration

Enable comments

To enable the "Add comment" action to the protocol item menu, add the action with id limepkg_form.addcomment and icon comments in the Form add-on config in Lime Admin.

Enable add picture action

To enable the "Add picture" action in the protocol item menu, the following steps are required:

  1. Make sure limepkg-document-widget is installed in your solution
  2. Add an action with id limepkg_form.addpicture and icon camera must be added in Lime Admin.

Add custom actions

You can create your own actions. Read here to see how you can create them.

Example action configuration

This section should be added to the Add-Ons - Form configuration using the code editor.

  "actions": [
    {
      "id": "limepkg_form.addcomment",
      "icon": "comments",
      "custom_title": "My custom title"
    },
    {
      "id": "limepkg_form.addpicture",
      "icon": "camera"
    },
    {
      "id": "solution_my_customer.my_custom_command",
      "icon": "fantasy",
      "custom_title": "Do magic",
      "params": {
        "my_custom_prop": "custom",
        "my_setting": "my_value",
        "timeout": 30
      }
    }
  ]

Properties in config

Name Data type Description
id string Id of the command to execute
icon string Name of icon to show
custom_title string optional, override default name of action (can be translation key or just the text)
params object optional, send in custom properties to the command