I'm trying to set a default for a field in a power app form. Below is the syntax I'm trying. Does anyone else have the right syntax? The field in sharepoint is a choice field with options choose one, yes, no
I'm not sure why this would be appearing. The code ["Choose one"] is a Table...
Its not liking the ["Choose one"]
Which part of the code is underlined in red in the formula bar above?
Actually it gets error 'invalid argument type , expecting table value.
No problem at all. That's what the forums are here for!
If you could accept my post as the solution I would be grateful. Please mark the one that gave the answer ๐
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
You have been a life saver
I gave you some revised instructions earlier in the thread. Here they are again ๐
Clear the Default property of any code and leave it blank
Then put this code in the DefaultSelectedItems property of the ComboBox
If(IsBlank(DataCardValue68.Selected.Value), ["Choose one"], Parent.Default)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Not sure what you need to see.. this is a snipit of the datacard and the property default and the formula.
Your screenshot looks the same as before. See my instructions here: https://powerusers.microsoft.com/t5/Building-Power-Apps/setting-a-default-in-a-powerapp-form-for-a-sharepoint-list/m-p/490915/highlight/true#M148483
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
So that last one didn't work... I attached the property and my formula.. anything look wrong to you?
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional