Hi, I've got a power apps form that I want to hide 2 fields when the form loads. It's based on a choice field that defaults to New Request. I've done a rule that says when Request status is equal to New Request it hides the 2 fields and it works. But my problem is the form loads and the status field comes in as blank even though its set to New Request in the list settings so no idea why this is doing this? Any ideas would be appreciated even if i can get the form on load to set the status field to New Request would be an answer. I've attached a screen dump of the rule I set
Any help be appreciated
Thanks
Brenden
Solved! Go to Solution.
Since the field is on the form (just not visible) the blank value gets submitted. The easy fix is to add a default value to the hidden field. I had a similar issue with a status choice field and here is the formula I used in the DefaultSelectedItems property of the combo box.
If(SharePointForm1.Mode = FormMode.New, { Value: "New Request" }, Parent.Default)
Your data source and field type might be different, so you may need to tweak the formula.
Since the field is on the form (just not visible) the blank value gets submitted. The easy fix is to add a default value to the hidden field. I had a similar issue with a status choice field and here is the formula I used in the DefaultSelectedItems property of the combo box.
If(SharePointForm1.Mode = FormMode.New, { Value: "New Request" }, Parent.Default)
Your data source and field type might be different, so you may need to tweak the formula.
Jeff you are an absolutely star thank you so much for you help really appreciated.
User | Count |
---|---|
139 | |
131 | |
75 | |
72 | |
69 |
User | Count |
---|---|
212 | |
200 | |
64 | |
63 | |
54 |