cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bmarcowka
Helper I
Helper I

On Select update field

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

5 REPLIES 5
RakeshPandey
Helper I
Helper I

@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.

 

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

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.

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

 

Any idea why?

Are you passing "N" value at any step of your code or application? If yes at which place; during variable creation?

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,023)