Copy Widgets from App to App

When copying and pasting a widget between apps, all widget elements and code are transferred to the new app. However, any resources external to the widget, such as database collections, code files, or dashboard pages, are not included. After pasting a widget, review the settings and code to ensure everything works as expected in the new app.

To copy and paste a widget:

  1. Click the more-actions icon next to the widget name.
  2. Click Copy.
  3. Go to the app where you want to paste the widget.
  4. Click the more-actions icon next to any widget name.
  5. Click Paste.

Copy paste widget

Note: If your browser is blocking the copy-paste action, set it to allow copying to the clipboard. Look for the definition in your browser's privacy or security settings.

Adjust Widget Settings Not Copied

The following widget settings are not copied automatically and must be updated manually:

  • Data-binding: Elements connected to a collection using no-code data-binding will lose their connection. Reconnect these elements to collections in the new app.
  • Animations: Animations applied to widget elements will not transfer. Reapply them in the new app.
  • Installation settings: Installation settings configured for the widget must be set up again in the new app.
  • Nested widgets: Nested widgets are not copied automatically. Copy each nested widget separately and add them back to the parent widget in the new app.

Update the namespace

If your widget code references the app namespace, it will retain the namespace of the original app. Update all instances of the namespace in the widget's code to match the namespace of the new app.

Did this help?