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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Checkbox default

(0) ShareShare
ReportReport
Posted on by 792

Hi Community 

 

I have a form which is edit mode and I want a checkbox to default based on the text in another datacard which is driven from a SP list. So when the text box says "Yes" check, "No" Uncheck,  is anyone able to assist?

 

 

Kmayes_0-1614785861855.png

 

Categories:
I have the same question (0)
  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @Kmayes 

    You can set the default property of the checkbox to -

    (ThisItem.HasRectificationTakenPlace = "Yes")

     

  • Kmayes Profile Picture
    792 on at

    Unfortunately as the checkbox's on my screen work independently to the form the code thisitem is not available I attempted IF(DataCardValue30.text ="Yes",true,false) but has an error

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @Kmayes 

    Just so that I understand this correctly, the checkbox control is outside of the form and you want to refer to the textinput control that's inside the form.

    What error do you see when you use the formula that you tried?

  • Kmayes Profile Picture
    792 on at

    Yes that is correct when the checkbox is selected it updates the value of DataCardValue30 to "Yes" and if unchecked "No"

    The error I am getting is as follows:

    Kmayes_0-1614807213093.png

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@Kmayes,

    Based on the issue that you mentioned, do you want to check the Checkbox based on the DataCardValue30 or update the DataCardValue30 based on the Checkbox value?

    I find that your description is inconsistent, could you please confirm the requirements?

    2021-03-10-02.png

    1). If you want to check the Checkbox based on the DataCardValue30, please set the Default of the Checkbox:

    If(DataCardValue5.Text="Yes",true,false)

    2021-03-10-03.png

    2). If you want to update the DataCardValue30 based on the Checkbox value, please set the Default of the DataCardValue30 as below:

    If(Checkbox2.Value,"Yes","No")

    2021-03-10-04.png

    Regards,

    Qi

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard