The Mobile Signature & Drawing Pad plugin is a comprehensive drawing solution for Bubble native mobile apps. It offers a touch-responsive canvas with seven professional drawing tools: freehand pen, semi-transparent highlighter, straight lines, rectangles, circles, arrows, and eraser. Features include smooth strokes with an optional speed-based pen width, undo/redo history of up to 60 steps, optional grid overlay for precise alignment, background image support, and customizable colors and stroke widths. Drawings are saved as high-quality SVG vector files to Bubble's file manager, ensuring scalability and small file sizes. Perfect for signature capture, annotations, sketching, note-taking, and creative applications.
Prerequisites
This plugin is designed specifically for the mobile version of the Bubble editor. To test the plugin on your mobile device, use the TestFlight app available at: https://testflight.apple.com/join/kW1puGu7
⚠️
Please note that the testing app is currently available for iOS only.
How to setup
Step 1 – Install the Plugin
Open the Plugins tab in your Bubble editor.
Click "Add plugins", search for "Mobile Signature & Drawing Pad" and install it.
Step 2 – Add the Plugin Element to Your View
Open the Design tab of your mobile app.
Search for the Drawing Canvas element in the Elements panel.
Drag and drop the element onto your mobile view.
Step 3 – Configure Properties
Select the element and configure its properties in the Property Editor like Background Color, Drawing Color, Width, Grid Size & Color and more
Plugin Element - Drawing Canvas
The Drawing Canvas is a powerful Bubble native mobile drawing tool that provides a touch-responsive canvas with professional tools and saves high-quality, scalable SVG drawings for signatures, annotations, and creative use.
Fields
Title
Description
Type
Background Color
The background color of the canvas (CSS color string, e.g., #FFFFFF).
Color, Required
Drawing Color
The color used for drawing in draw mode (CSS color string, e.g., #000000).
Color, Required
Stroke Width
The stroke width for the draw tool in pixels.
Number, Required
Eraser Width
The stroke width for the eraser tool in pixels.
Number, Required
Grid Size
Grid cell size in pixels
Number, Optional
Grid Color
Grid line color
Color, Optional
Grid Opacity
Grid line opacity from 0 to 1
Number, Optional
Highlighter Opacity
Highlighter transparency from 0 to 1 (default: 0.3)
Number, Optional
Speed-based Stroke Width
Varies the pen width with drawing speed: slow strokes are thicker, fast strokes are thinner. Stroke Width becomes the maximum width. Applies to the free drawing tool only.
Yes/No, Optional
Min Stroke Width
Minimum pen width in speed-based mode (default: 35% of Stroke Width).
Number, Optional
Element Actions
Enable Erasing Mode
Switches to eraser mode. The eraser removes any stroke or shape it touches.
Set Background image
Sets a background image to the canvas.
Title
Description
Type
Image Url
Image Url of the file to set as background
Text, Required
Enable Free Drawing Mode
Switches to freehand drawing mode.
Clear Canvas
Clears all drawn paths, resetting the canvas to a blank state.
Undo
Reverts the last drawn or erased path, restoring the previous canvas state.
Redo
Reapplies the last undone path, if available.
Toggle Grid
Toggles the visibility of a grid overlay to assist with drawing alignment.
Enable Line Drawing Mode
Switches to straight line drawing.
Enable Rectangle Mode
Switches to rectangle drawing.
Enable Circle Mode
Switches to circle drawing.
Enable Arrow Mode
Switches to arrow drawing.
Enable Highlighter Mode
Switches to semi-transparent highlighter.
Save To Bubble File Manager
Saves the canvas to bubble file manager.
⚠️
Private files are protected by the privacy rules of the data type the file is attached to. Make sure the rule grants "View attached files" to the users who should see the file. Saving the file URL in a field does not make the file private - only Attach To does.
Title
Description
Type
Endpoint
Bubble file upload endpoint: https://<your-app-domain>/fileupload for the live version, or https://<your-app-domain>/version-test/fileupload for development.
Text, Required
File Name
Custom filename (default: drawing_<timestamp>.svg). The .svg extension is added automatically.
Text, Optional
Private Upload
Stores the file as private. Requires Attach To.
Yes/No, Optional
Attach To
Unique ID of the thing the private file is attached to.
Text, Optional
Remove Background Image
Removes the background image.
Exposed States
Name
Description
Type
Current Tool
The currently active tool: draw, eraser, line, rectangle, circle, arrow or highlighter.
Text
Background Image Url
Current background image URL
Text
Canvas Empty
Whether the canvas is empty
Yes/No
Can Undo
Whether undo action is available
Yes/No
Can Redo
Whether redo action is available
Yes/No
Grid Visible
Whether the grid is currently visible
Yes/No
Saved Drawing Url
URL of the saved drawing in Bubble file manager
Text
Saved Drawing Filename
Filename of the saved drawing
Text
Error Message
Error message if save fails
Text
Paths Count
Number of strokes and shapes on the canvas.
Number
Element Events
Name
Description
Background Image Changed
Triggered when a new background image is set
Canvas Cleared
Triggered when canvas is cleared
Enabled Draw Mode
Triggered when draw mode is activated
Undo Performed
Triggered when undo action is executed
Redo Performed
Triggered when redo action is executed
Canvas Initialized
Triggered when the canvas is fully initialized (on first render).
Drawing Started
Triggered when a gesture begins with a drawing tool (not the eraser).
Drawing Completed
Triggered when a gesture changes the canvas: a stroke or shape is added, or strokes are erased.
Grid Toggled
Triggered when grid visibility is toggled
Line Mode Enabled
Triggered when line tool is activated
Rectangle Mode Enabled
Triggered when rectangle tool is activated
Circle Mode Enabled
Triggered when circle tool is activated
Arrow Mode Enabled
Triggered when arrow tool is activated
Highlighter Mode Enabled
Triggered when highlighter tool is activated
Drawing Saved Successfully
Triggered when drawing is successfully saved to Bubble
Drawing Saving Failed
Triggered when save operation fails
Eraser Mode Enabled
Triggered when the eraser tool is activated.
Background Image Removed
Triggered when the background image is removed.
Erasing Started
Triggered when an eraser gesture begins.
Erasing Completed
Triggered when an eraser gesture removes at least one stroke. Drawing Completed is triggered as well.
Workflow example
Here is a basic workflow example to get you started with the Mobile Signature & Drawing Pad plugin:
Basic Workflow
Add the Drawing Canvas element to your mobile page.
Configure the element fields:
Add a button that will trigger the element Enable Free Drawing Mode action.
Add a button that will trigger the element Enable Eraser Drawing Mode action.
Repeat the 3rd step with other Drawing Mode Tools actions.
Use the states to display the board info in the text element.
Changelogs
Update 19.08.26 - Version 1.2.0
Fixed canvas state loss on remount, invalid SVG exports with signed image URLs, and eraser behaviour over background images.