Hi,
I have a quick question.
Actually when I submit my form, it save empty field in my SharePoint list.
I just found that for a combobox I should use Update = combobox.Selected.fieldName.
Does someone knows how I should write this for a checkbox in a gallery and for a dropdown?
Thnx in advance !
Hi @mimii ,
This blog of mine should give you the appropriate values.
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.
Visit my blog Practical Power Apps
Hi @WarrenBelz,
Thanks for your reply! I just tried some code but it doesn't seems to work.
The code that I tried are as follow:
Combobox
- Update = combobox.SelectedItem => No error but shows nothing in SharePoint
- Update = combobox.SelectedItems.Book => No error but shows nothing in SharePoint
- Update = combobox.Selected.Book => Error, book is underlined in Red
Checkbox
- Update = Gallery3.Selected =>No error but shows nothing in SharePoint
- Update = Gallery3.Selected.Value =>It's juste empty
Am I doing something wrong?
@mimii ,
What are the names and field types you are writing back to and if choice fields, are they single or multiple select.
Well, actually when an author is selected, the data are taken from the database and set into the fields and this works perfectly.
Author:
- combobox
- single select
- code that works: update = comboboxAuthor.Selected.author
Genre:
- is a checkbox into a gallery into a DataCard
- checkbox
- multiple select
- code that doesn't work: update = Gallery.Selected.Value
Book:
- combobox
- multiple select
- code that doesn't work: update = comboboxBook.SelectedItems
Languages:
- combobox
- single select
- code that doesn't work = comboboxLanguage.Selected.language
All the update code are made on de DataCard level.
@mimii ,
I was after the fields you are writing back to and what type they are.
Also Genre is a fairly complex workaround - are you sure you have followed the process correctly?
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
196 | |
52 | |
41 | |
39 | |
35 |
User | Count |
---|---|
263 | |
86 | |
71 | |
69 | |
66 |