The Select Button Checkmark and Radio Extension allows you to add styled checkmarks or radio-style indicators to Digioh select buttons, including quiz answer buttons and generic select buttons.
This extension is fully configurable using metadata and does not require custom CSS, images, or HTML modifications.
What You'll Learn in This Article:
- How to install and enable the Select Button Checkmark and Radio Extension
- How to configure checkmark and radio styles using metadata
- How to test and troubleshoot the extension
Overview
This extension enhances Digioh buttons by dynamically rendering visual selection indicators based on metadata configuration.
It supports:
- Single page experiences
- Multi page quiz flows
- Product recommendation quizzes
- Survey style button selections
Indicators are automatically reapplied during page transitions using the After Change Pages lifecycle event, ensuring styling persists across quiz steps.
Supported Use Cases
- Quiz answer buttons (including multi page quizzes)
- Generic Digioh select buttons
- Product recommendation quizzes
- Survey style button selections
How to Install
- Log into your Digioh account.
- Open the Custom JavaScript section from the profile menu (top-right dropdown).
- Search for "Select Button Checkmark and Radio" in the available extensions list.
- Click Install.
Enable a Checkmark on a Button
Add the following metadata at the button (element) level:
checkmark_enable = true
![Button Metadata settings panel with a toggle enabled, showing a key-value pair where 'checkmark_enabl[ed]' is set to 'true', with add and remove buttons.](http://dyzz9obi78pm5.cloudfront.net/app/image/id/6a297e328b66943ec505e561/n/ss1bm.png)
This must be applied individually to each button that should display a checkmark.
Checkmark Styles (Campaign-Level Metadata)
Set the style at the campaign level metadata
checkmark_style = [style name]
Available Styles
checkbox Displays a visible square box at all times. The checkmark appears inside the box when selected.
textmark (default) Displays a checkmark inline next to the button text when selected.
indent Reserves space for the checkmark even before selection to prevent layout shift.
shift Does not reserve space. The checkmark appears when selected and shifts the text.
If no style is set, the extension defaults to:
textmark
Optional Checkmark Customization (Campaign Level Metadata)
You may further customize the checkmark appearance using the following metadata.
checkmark_icon
checkmark_icon = ✓
- Accepts a character (e.g., ✓)
- Or a direct image URL (https://example.com/icon.png)
- Default: ✓
checkmark_position
checkmark_position = left
Options:
- left
- right
Default: left
checkmark_color
checkmark_color = #000
- Any valid hex color
- Default behavior:
- Black for checkbox style
- Current button text color for other styles
checkmark_size
checkmark_size = 16px
- Accepts common CSS size units (px, em, rem, %)
- Default: Matches button font size
Checkbox Style Options
(Only applies when checkmark_style = checkbox)
checkbox_border_color
checkbox_border_color = #000
Default: #000
checkbox_background
checkbox_background = #ffffff
Default: #fff
checkbox_size
checkbox_size = 18px
Default: 18px
Enable Radio Button Style
To render a radio-style selection indicator, add the following metadata at the button (element) level:
radio_enable = true
Radio Customization (Campaign-Level Metadata)
radio_border_color
radio_border_color = #000
Default: currentColor (inherits text color)
radio_fill_color
radio_fill_color = #000
Default: currentColor
radio_size
radio_size = 18px
Default: 18px
Important Rules and Limitations
- You must apply checkmark_enable or radio_enable individually to each button.
- A button cannot use both checkmark_enable and radio_enable.
- If both are applied, the extension will log an error and skip that button.
- The extension respects the button’s existing text alignment.
- Recommended styling: Left aligned text + checkbox style for a traditional UI appearance.
Multi-Page Quiz Support
This extension supports multi-page quizzes.
Indicators are automatically re-applied during the:
After Change Pages lifecycle event
This ensures:
- Styling persists across quiz steps
- No manual reinitialization required
- Consistent behavior on dynamic page transitions
QA and Testing
To test in Digioh QA Mode:
- Click Publish QA in the Digioh account.
- Add ?boxqamode to the page URL. (Use &boxqamode if the URL already contains query parameters.)
- Verify:
- Indicators render correctly
- Styles match metadata configuration
- Indicators persist across page transitions (for multi-page quizzes
- Confirm the extension is published — unpublished extensions will not run on the test page.
Troubleshooting
If indicators are not appearing:
- Confirm metadata is applied at the correct level (Campaign vs Element).
- Confirm the extension has been published after any changes.
Ensure buttons include: checkmark_enable='true'
or radio_enable='true'
- Check the browser console for Digioh App notification errors.
- Confirm no other Custom JS is overwriting button HTML.
- Ensure checkmark_style is one of:
- checkbox
- textmark
- indent
- shift
Want to get more from Digioh?
Get the playbooks leading brands use to convert more visitors into revenue.
Browse the Playbooks ?Platform Tour
See what else you can do with Digioh in our self-guided platform tour.
Take the Tour ?