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 Platform Community / Forums / Power Apps / checkbox to replace da...
Power Apps
Answered

checkbox to replace datacard can advise. thank you

(0) ShareShare
ReportReport
Posted on by 1,994

hi

I need to replace the datacard to a check box so that user can check and data submit back into SP

 

can advise how to link the check box and remove the datacard?

 

checkbox.png

 

Thank you

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @bbsin,

    1). Select the DataCardValue1 and delete it from the data card

    2). Since the field is text type, set the Text Default property:

    If(ThisItem.textColumn = "x", true, false)

    3). Set the DataCard's Update() property to:

    If(Checkbox.Value, "x", "")

     

     

     

     

  • codeworks Profile Picture
    321 on at

    Change the column type in your SP list to your desired type, Refresh your SharePoint list in PowerApps, then re add it to your form.

  • bbsin Profile Picture
    1,994 on at

    Hi @v-qiaqi-msft 

     

    cannot not sure where is not right
    I want to delete datacard "Declare(C)DC to replace with the checkbox and when user check it should return as YES in SP list

    and this check box must be a required field to check if not cannot move one.   Thanks 

    checkbox.png

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

    Hi @bbsin,

    I have mentioned the details in my previous reply, hope you could check it and try again.

     

    You make me confused, you said that you want to remove the data card and replace it with the Checkbox, however you keep the TextInput and want to display something in TextInput based on checkbox value, which drive me dizzy.

     

    I will repeat my solution one more time.

    1). Select the Declare(C)DC and DELETE it from the data card

    2). Since the field is text type, set the Default property of Checkbox:

    If(ThisItem.ApplicantInfoDeclare= "Yes", true, false)

    3). Set the DataCard's Update property to:

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

    4). REPLACE the Checkbox with the real checkbox name in your scenario.

  • bbsin Profile Picture
    1,994 on at

    @v-qiaqi-msft  Thank you

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard