cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mimii
Helper I
Helper I

Form submit empty fields in SharePoint

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 ! 

 

5 REPLIES 5
WarrenBelz
Super User
Super User

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

mimii
Helper I
Helper I

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.

mimii
Helper I
Helper I

@WarrenBelz,

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?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,275)