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 / On Select update field
Power Apps
Unanswered

On Select update field

(0) ShareShare
ReportReport
Posted on by 30

What is the "On Select" statement to update a field (example below) from a blank value to an "Y" value when you select a Submit Form?

 

SubmitForm.JPG

SubmitForm.JPG
Categories:
  • RakeshPandey Profile Picture
    46 on at

    @bmarcowka You can set a variable OnSelect of the icon and make the default value of TextInput is equal to that variable. You need to set the variable before submit form operation. So you code look something like below.

    Set(textvalue,"Y");SubmitForm(Form1);Back()

    Remember to TextInput Default is equal to textvalue.

     

  • bmarcowka Profile Picture
    30 on at

    Correct me if I am wrong but shouldn't it read?

     

    Set(MANUPDATE,"Y");SubmitForm(Form1);Back()

     

    With MANUPDATE the field I am looking to update.

     

    Thank You

  • RakeshPandey Profile Picture
    46 on at

    Here you are assigning MANUPDATE variable is equal to "Y". And make the deault value of the TextInput is eqaul to MANUPDATE. So when we click the button the default value will become "Y". Another way is you can use PATCH function to update the item in SharePoint list or any other datat source.

  • bmarcowka Profile Picture
    30 on at

    The process is writing to the table as expected however it is writing a value of "N" not "Y".  

     

    Any idea why?

  • RakeshPandey Profile Picture
    46 on at
    Are you passing "N" value at any step of your code or application? If yes at which place; during variable creation?

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
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard