Skip to main content
Community site session details

Community site session details

Session Id : mrWcdBST4WIrOJXYwejiYI
Power Apps - Building Power Apps
Unanswered

Default value for CDS submit form not working when submitting

Like (0) ShareShare
ReportReport
Posted on 24 Jun 2020 09:15:08 by 69

Hi all,

 

I'm facing a strange issue. I'm having a CDS where i want to submit in one shot let's say 5 forms (5 days)

 

The forms have the following data cards:

 

date: Date picker

Employee status:  Items -> Choices('Employee Status')-----> Combo Box

Start time:  Items -> Choices(Times)-----> Combo Box

End Time:  Items -> Choices(Times)-----> Combo Box

Comment: Text box

 

in order to have a quick update for the 5 days, i've created the same elements but those are not part of a form:

 

MassStatus: dropdown --> Items -> Choices('Employee Status')

MassStart: dropdown --> Items -> Choices(Times)

MassEnd: dropdown --> Items -> Choices(Times)

MassComm: text box

 

For having this "Mass update function" I've set up the Submit forms datacards values as follows:

 

Date:  Default selected date = LookUp(WeekDetails,DayNumber=2,Date)  (this is a collection created by a dropdown change, that contains the dates of a specific week)

Employee status:  DefaultSelectedItems (and also the default) = MassStatus.SelectedText

Start time: DefaultSelectedItems (and also the default) = MassStart.SelectedText

End Time: DefaultSelectedItems (and also the default) = MassEnd.SelectedText

Comment: default = MassComm.Text

 

And here comes the problem:

 

When i change the values on the Mass update items, i can clearly see that all of the form objects, selection change accordingly (as ia wanted).

 

BUT when i submit the forms, in the CDS i see the proper data only for the Date and the Comment,

for the combo box type fields the data doesn't submit correctly...... I went 1 by 1 on each submit form, and when i select the combo boxes values manually an i submit is fine.....

 

Anyone any idea???

 

Thank you in advance,

Oliver

 

  • WarrenBelz Profile Picture
    148,931 Most Valuable Professional on 02 Jul 2020 at 07:17:46
    Re: Default value for CDS submit form not working when submitting

    Aways a pleasure @OliverV ,

    Interesting that drop-downs work. They are a far less complex control, so I think you are right with the bug issue.

     

  • OliverV Profile Picture
    69 on 02 Jul 2020 at 06:43:59
    Re: Default value for CDS submit form not working when submitting

    Hi @warren,

     

    I was deeeeeply implementing and testing the dev. Unfortunately your suggestions didn't work 😕 this seems like a bug, because as i mentioned before, by changing the control object from combobox to dropdown, everything works perfectly (this is what i did across the app).

     

    I keep the thread open for another couple of days, let's see if someone from MS can clarify the situation, whether is a bug or I'm dumb 😄

    But  Kudos of course are going to you, you are always the most helpful 🙂

     

    Cheers!

    Oliver

  • WarrenBelz Profile Picture
    148,931 Most Valuable Professional on 01 Jul 2020 at 21:14:15
    Re: Default value for CDS submit form not working when submitting

    Hi @OliverV ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    148,931 Most Valuable Professional on 29 Jun 2020 at 21:44:38
    Re: Default value for CDS submit form not working when submitting

    Hi @OliverV ,

    You can also put this in the Update

    {Value:YourControlName.Selected.Value}

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • OliverV Profile Picture
    69 on 29 Jun 2020 at 12:28:53
    Re: Default value for CDS submit form not working when submitting

    Hell Warren,

     

    It was the datacardX.selected.value,  now i've tried to add to the update property also the "variable" of the drop dropdown and now i submitting properly that one, but if i change on the form the selection, now is not submitting the data selected on the form, only the one from the "mass update" (precisely the opposite of the previous problem).

     

    I've run a test and found a workaround in the meantime:

    Seems that the issue is only with the combo box, if i change every combobox on the form, to dropdowns, and set it up as my first "concept/idea" works perfectly, so in reality i solved my problem, but I'm still interested in why the comboboxes are causing this problem.

  • WarrenBelz Profile Picture
    148,931 Most Valuable Professional on 29 Jun 2020 at 11:17:30
    Re: Default value for CDS submit form not working when submitting

    Hi @OliverV ,

    I am not a CDS user, but what are the Update properties of the relevant Data Cards?

  • OliverV Profile Picture
    69 on 29 Jun 2020 at 10:33:34
    Re: Default value for CDS submit form not working when submitting

    Any idea? @WarrenBelz @mdevaney 

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!