Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Convert Checkbox into List With Two Options (Subscription List)

(0) ShareShare
ReportReport
Posted on by 248

Hi there,

is there an easy way to convert the checkbox for a subscription list on a subscription form into a list with two options e.g. "Subscribe" and "Unsubscribe"?

We want to make it more clear for the end-user that she/he is unsubscribing from a list when not ticking the list.

Thanks!

  • Suggested answer
    mauro mar Profile Picture
    on at
    RE: Convert Checkbox into List With Two Options (Subscription List)

    Good suggestions from fellow users. So depending on the skills in the team, you have a number of options. You can do a lightweight UX tweaks on the page via CSS or go all the way using some JavaScript to write back in Dataverse API for those subscription lists (so you can customize it the way you like it, although it's more code), or have a custom field and plugin to have all these as Dataverse customizations without the need of custom Javascript.

  • Jarrod365 Profile Picture
    40 on at
    RE: Convert Checkbox into List With Two Options (Subscription List)

    Can you give a picture of your expected design?

    As far as I know, it is possible to create several two options fields to Contact and map them to subscription lists running plugin.

  • Zukasa Kyu Profile Picture
    135 on at
    RE: Convert Checkbox into List With Two Options (Subscription List)

    Hi,

    The checkbox element is fixed HTML component, I don’t think it can be converted into another element easily without CSS or JS customization, at least the OOB feature is not implemented by Marketing app yet.

    It is not common to use JS to convert existing input element into different element and it doesn’t make sense because lots of code are required and the input elements should be designed from the beginning, but the idea to beautify the default style using CSS would be good, indeed checkbox is usually converted into slide toggle.

    From our experience, default checkboxes are used by many of our newsletter providers.

    Regards,

    Zukasa

  • cloflyMao Profile Picture
    25,208 on at
    RE: Convert Checkbox into List With Two Options (Subscription List)

    Hi Thomas,

    As per my understanding, do you refer to slide control?(Like slide control of two options field of Dynamics.)

    If so, it seems that the only workaround is to overwrite checkbox element using custom CSS.

    I found a simple demo and apply its CSS to my subscription center form with modification, please check whether it works for you.

    https://codepen.io/thelaazyguy/pen/MvqpPr

    Due to subscription list is included in marketing-subscription-list class div container, so my sample code should be applicable to all forms, you just need to copy my CSS to source code of your form.

    (Locating subscription list elements using CSS selector, there are only 4 rules.)

        .marketing-subscription-list > input[type="checkbox"]:checked {
            background: #0ebeff;
        }
        
        .marketing-subscription-list > input[type="checkbox"]:checked:after {
            left: calc(100% - 1.5em);
        }
        
        .marketing-subscription-list > input[type="checkbox"]{
            font-size: 12px;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            width: 3.5em;
            height: 1.5em;
            background: #ddd;
            border-radius: 3em;
            position: relative;
            cursor: pointer;
            outline: none;
            -webkit-transition: all .2s ease-in-out;
            transition: all .2s ease-in-out;
            border-color: transparent;
        }
        
        .marketing-subscription-list > input[type="checkbox"]:after{
            position: absolute;
            content: "";
            width: 1.5em;
            height: 1.5em;
            border-radius: 50%;
            background: #fff;
            -webkit-box-shadow: 0 0 .25em rgba(0,0,0,.3);
            box-shadow: 0 0 .25em rgba(0,0,0,.3);
            -webkit-transform: scale(.7);
            transform: scale(.7);
            left: 0;
            -webkit-transition: all .2s ease-in-out;
            transition: all .2s ease-in-out;
        }

    pastedimage1611825144963v1.png

    Test

    mao.JPG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Product updates

Dynamics 365 release plans