web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Ribbon Workbench - New button to select checkbox

(0) ShareShare
ReportReport
Posted on by 12

If I wanted to place a new read only checkbox(FollowUpComplete) on a form and then use a new button to trigger that to be checked, how would I do that?
Also, if you could explain it like I'm seven, I'd appreciate it.

I've used RW in other ways, but not for anything like this before.

Other thread or videos would be welcome knowledge.

Thank you

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi elzool,

    Based on your description, you want to update a field value through clicking the button, right?

    If so, you need use js code and call the function in the ribbon workbench.

    The checkbox field is one two options field, so it has two values:false and true

    1.Js code:

    function setCheckbox(executionContext)

    {

    var formContext = executionContext;

    formContext.getAttribute("new_testcheckbox").setValue(true); 

    }

    2.Add it to web resource:

    pastedimage1657771865627v2.png

    3.Open the ribbon workbench to add button and command:

    pastedimage1657771941049v5.png

    pastedimage1657771970436v7.png

    4.Test:

    pastedimage1657771983298v8.png

    After clicking button:

    pastedimage1657771792061v1.png

  • elzool Profile Picture
    12 on at

    Thank you Leah Ju!

    I'm glad I asked that it be explained like I was seven as I would have needed further assistance if you hadn't been as absolutely clear as you were.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans