So I have a very basic powerapp that is connected to an online Excel sheet. We are using this for clean checks in apartments. I have toggle switches for each item that say whether it is clean or not. Everything works great however, when I go to the detail screen, it shows me the proper value from the toggle, but when I click the edit button in the top right corner and go to the edit page, it moves all my toggles back to their original position. The text boxes contain the same values that were inputted, but the toggles all reset. Any ideas on how I can fix this?
Hi @thaynetr ,
Have you updated successfully by using this toggle?
If you just insert toggle, but not set it to update function, the toggle will not update value automatically.
Try this formula: (set the toggle's OnChange)
Patch(tablename,item,{fieldname:Toggle1.Value})
If you have updated value successfully by using this toggle, but in edit screen the toggle did not display right value.
If the toggle is in edit form, try to set it Default:
Gallery1.Selected.fieldname
Or:
Parent.fieldname
Please replace tablename,fieldname, item will the value in details.
Best regards,
Hi @thaynetr ,
Could you tell me
1)the data type of status field?
2)the Item of the edit form?
I assume that it is a choice field.
the item is gallery1.Selected
I suggest you set the toggle's Default in the edit form:
If(gallery1.Selected.status.Value="Vacent",true,false)
Or you could also replace "gallery1.Selected" with the item that you want.
Best regards,
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
175 | |
62 | |
32 | |
30 |
User | Count |
---|---|
324 | |
268 | |
104 | |
74 | |
56 |