cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (55,879)