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 / Modern control: Date f...
Power Apps
Unanswered

Modern control: Date field and Dropdown is not updated once click Save button

(0) ShareShare
ReportReport
Posted on by 51

Hello,

Need anyone helps to fix my error. I have 7 columns in gallery: 2 Date fields, 3 dropdown box, 1 combo box and 1 text.

I have setup all of them as per in youtube. However, I noticed when I tried to make changes to the data, the dates, combo box and 2 of the dropdowns are not being updated. Below is how i setup them, please review and see if I make any mistakes.

 

Their DefaultSelectedItems/SelectedDate/Value as below:

-------------

ThisItem.TeacherName

ThisItem.'Start Date'

ThisItem.'End Date'

{Value:ThisItem.'Subject'}

{Value:ThisItem.'Course'}

{Value:ThisItem.'StudentsName'} *I use 365 people picker, select multiple value

ThisItem.Remarks

 

 

I put codes in hidden button called 'buttoncanvas1' as below:
---------------

UpdateIf(
colGridUpdates,
ID = ThisItem.ID,
{
TeacherName: Name.Selected, 
'Start Date': StartDate,
'End Date': EndDate,
'Subject': DrpS.Selected.Value,
'Course': DrpCourse.Selected.Value,
'StudentsName': ComboboxCanvas1.SearchText,
Remarks: TextRemarks.Value
}
)

 

 

Every fields I put on OnChange value

-----------------------------

select(buttoncanvas1)

 

 

For save button as below:
-----------------------------

Patch(
'School Records',
ShowColumns(
colGridUpdates,
"TeachersName",
"StartDate",
"EndDate",
"Subject",
"Course",
"StudentsName",
"Remarks",
"ID"
)
);
Notify(
"Records successfully submitted/saved",
NotificationType.Success,
4000
);
Clear(colGridUpdates);
Set(
varReset,
false
);
Set(
varReset,
true
)

Categories:
I have the same question (0)
  • MissingLink Profile Picture
    236 on at

    In the patch, for the date fields, you need to specify that you want to patch the SELECTED Date.   

    So use 'Start Date.SelectedDate  instead of just 'Start Date'

  • WydaPBI Profile Picture
    51 on at

    Dear @MissingLink ,

    still error 😞

  • MissingLink Profile Picture
    236 on at

    Your 'UpdateIf' section also need to indicate the selected date as follows.

    UpdateIf(
    ...
    ...
    'Start Date': Name_Of_Your_Start_Date_Selector.SelectedDate,
    'End Date': Name_Of_Your_End_Date_Selector.SelectedDate,
    ...
    ...)

     Does that fix it?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard