What is your DefaultSelectedItems property of your Combobox control? If this is in a form, it should be based on the Parent.Default of the datacard.
Check that property and see if it is not set properly.
I hope this is helpful for you.
Hi, so if the Form Mode is New it should reset and be blank. However there is also a Reset function that you can pass the name of a control. It will then reset to the default value of the control.
In terms of editing, you need to ensure that the item of the form is the item whose values you want to be populated in the Form.
Hopefully the following shows some helpful concepts:
So above on the left we have a gallery looking to the same SP List that the Form on the right is hooked up to. The submit button is literally just doing SubmitForm(FormName). Now that in itself and with the Form set to a default mode of New, once submitted it will revert back to a blank empty form to be filled out.
Notice default mode on the right.
I make an entry and click submit, first screen shot. Second shows the state of the form afterwards.
So here this has actually done what you have stated and this is because the form has not been reset and is still in edit mode
So one thing I could do here is have some logic such as in the new button
Pressing new takes me to a state of
Now if we go back and Submit again, except this time we will change the submit button logic to:
Now for the same example, new entry is made and submit is hit
The above is now blank as we ensured we set the Form to new. So your first issue is probably because the Form is still in edit mode. Now in terms of editing the right item, in my example I am using a gallery and when I click to go into the item, it is going to enter the form in edit mode and set a variable that is populated in the item property of the form.
Now there are many ways to achieve the above, one quick way of seeing how you do this is to create a Power App from a SharePoint List. But hopefully this lays down the following key concepts that will help:
Setting the Item that exists in the data source of the Form whilst in Edit Mode.
Also look to things like LastSubmit, if you want a quick reference to what was Last Submitted.
Hi! Thank you for your reply.
I see that I am not using a form. The screen contains multiple dropdowns list where I can select or add the info required (for eg: a dropdown where I can select the name from Office365, a dropdown for category and so on). Now, if I select one dropdown: DefaultSelectedItems Property is empty, DisplayMode is DisplayMode.Edit and Visible: If(varmode="New"||varmode="Edit", true).
I've tried to add to DefaultSelectedItems = Parent.Default, but I receive the following message: "Name isn't valid. The identifier isn't recognized.".
I'm still trying to understand how powerapps works, so sorry if I am not that clear. Thanks!
So if this is Not in a Form, then you will need to provide the appropriate formula for the DefaultSelectedItems property. You have none right now...that will never select anything.
Parent.Default is only relevant to forms.
How are you getting a record for the screen that has the information?? Is this screen being reached by selecting a Gallery item? Is this integrated into SharePoint (customize forms), or is a standalone app?
Check out new user group experience and if you are a leader please create your group
We are excited to announce that Demo Extravaganza for 2021 has started!
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks
Did you miss the call? Check out the recording here!