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 / Submit Button For Edit...
Power Apps
Answered

Submit Button For Edit Form

(0) ShareShare
ReportReport
Posted on by 185

Okay, I have gotten myself into an absolute mess. I have two different lists. I'll call them list 1 and list 2. 

 

List 1 - List of Jobs

List 2 - Application form for Selected Job. 

 

I have a screen with a gallery and an edit form for list 1. I also have a second edit form located below the first one, but this one is connected to list 2. Both of these lists have a column titled, "end date". I have the "Apply" button based off of the end date, and this is its formula: 

 

If(IsBlank(Subtitle1.Text), DateValue(Now()), DateValue(Subtitle1.Text))

 

This is so that the date picker's default on edit form 1 has the same date as the date on form 2. I also have the formula for the date picker that if today is equal to or less than 180 BEFORE the end date, the apply button is disabled. It is all pretty much intertwined. 

 

I'm not sure if I was able to explain all of that very well, but what I am needing to know is how to submit the form with the datacard that has this formula. It is not updating and I also tried a formula with UpdateContext. 

 

I'm a mess and incredibly confused. Any help would be appreciated!

Categories:
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @gjbannister01 ,

     

    What type of column is your 'end date' column? Also, which form do you want to submit?

     

    I also created a similar app according to your description. The data type of 'end date' column is 'Date and Time'

    Now I have created a Gallery and a Form1, and I set the Item property of the Form1 to:

    Gallery1.selected

    vmengmlimsft_0-1692243124497.png

     

    I can't figure out how your ‘Apply’ button works. I set the DefultDate of the datepicker in Form2 so that the ‘end date’ values in both forms are the same.

    If(IsBlank(Subtitle1.Text),DateValue(Now()), DateValue(Subtitle1.Text))

    vmengmlimsft_1-1692243513847.png

     

    If you want to save the modified record or value to data source as a new record such as the value of datepicker in form2, you can use Patch function:

    Patch(List,Defaults(List),{column1:DatePickerName.SelectedDate,column2:””})

    List is where you want to store the value or record, column is the column in the List to store the value, and DatePicker is the name of the control you use to select the date.

     

    If this is not what you want, I hope you will use some pictures to describe your problem in as much detail as possible.

     

    Best regards,

    Rimmon Li

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard