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.
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.
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.
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
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 |
---|---|
181 | |
52 | |
41 | |
40 | |
34 |
User | Count |
---|---|
262 | |
81 | |
71 | |
69 | |
66 |