The Problem is when I only type in title and issue description the create button change to edit mode, it seem did not check the site and categories fields.
I tested I choose a value of categories choice and cancel it, then it work. So I set the default and DefaultSelectedItem to Blank(), it still not work on initial state. Any thing I done wrong?
I using SharePoint list to store the information.
Title data type: text
Issue description data type: text
Site data type: choice
Categories data type: choice
Solved! Go to Solution.
Hi @Ed_Cheung ,
After a bit more test I found that IsBlank(Combobox.Selected) would return true if nothing selected in the combo box:
So you need to replace that two IsEmpty() function with IsBlank():
If(
IsBlank(Title_DCValue_CreateForm.Text) ||
IsBlank(IssueDescription_DCValue_CreateForm.Text) ||
IsBlank(Site_DCValue_CreateForm.Selected) ||
IsBlank(Categories_DCValue_CreateForm.Selected),
DisplayMode.Disabled,
DisplayMode.Edit
)
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @Ed_Cheung ,
The reason is even if no item is selected in the Combo box, by default, there is a Blank() record in it. Only if you select some item then de-select it IsEmpty() would return true. See below screenshots:
.
So, for above reason, IsBlank() is the way to achieve your goal.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @Ed_Cheung ,
After a bit more test I found that IsBlank(Combobox.Selected) would return true if nothing selected in the combo box:
So you need to replace that two IsEmpty() function with IsBlank():
If(
IsBlank(Title_DCValue_CreateForm.Text) ||
IsBlank(IssueDescription_DCValue_CreateForm.Text) ||
IsBlank(Site_DCValue_CreateForm.Selected) ||
IsBlank(Categories_DCValue_CreateForm.Selected),
DisplayMode.Disabled,
DisplayMode.Edit
)
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.
Did you miss the call?? Check out the Power Apps Community Call here!
User | Count |
---|---|
255 | |
203 | |
76 | |
37 | |
31 |
User | Count |
---|---|
328 | |
215 | |
123 | |
72 | |
53 |