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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (939)