Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Change Form Choice Value

(1) ShareShare
ReportReport
Posted on by 745
Hello Everyone,
 
I have form that is connected to Dataverse and I have choice column in the form.
I want to change the value of the choice column by clicking on a Button.
The choice has 3 values - "Rejected", "Approved" and "Submitted".
 
By default the choice column is empty, so I am to change the choice column's value to "Submitted" by a click on the button.
 
I hope anyone can help.
 
  • narayan225 Profile Picture
    narayan225 2,425 on at
    Change Form Choice Value
    I have tested this with the Gender option set column in my case and here is what I have done.
     
    Button OnSelect Property:
    Set(varType,"Female")
    DataCard Default Property:
    If(IsBlank(varType) = true,ThisItem.Gender,LookUp(Choices(Contacts[@'Gender']),Text(Value) = varType).Value)
    Gallery OnSelect Property:
    Set(varType,Blank())
    This will make sure that when you select a new item, the variable gets blank and whatever was the item's default gender is set to the card and the Combo-box.
    And when you click the button the variable sets the gender to Female.
     
    Hope this helps.
    Cheers!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,567

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard