Hello ;
How is it possible to do:
In a Person field => the default value is the user connected
In a choice field => take a default value
I test :
Person field => Default => User().Email
Choice Field ["A","B","C"] => default => {Value :"A"}
Thanks for your help ! 🙂
Solved! Go to Solution.
Hi @bansay ,
Do you want to set a Default value within the Person field and Choice field in the Edit form?
Do you generate an app based on your SP List data source?
I assume that you generate an app based on your SP list data source, and want to set a Default value within the Person field and Choice field in the Edit form when the Edit form is in New form? According to the formula you provided, I think there is something wrong with it.
I have made a test on my side, please take a try with the following workaround:
Set the DefaultSelectedItems property of the ComboBox within the Person field data card in the Edit form to following:
If( EditForm1.Mode =FormMode.New, { Claims: "i:0#.f|membership|" & Lower(User().Email), DisplayName: User().FullName, Email: User().Email, Department:"", JobTitle:"", Picture:"" }, Parent.Default )
Set the DefaultSelectedItems property of the ComboBox within the Choice field data card in the Edit form to following:
If( EditForm1.Mode = FormMode.New, { Value: "A" }, Parent.Default )
Please take a try with above solution, then check if the issue is solved.
Please check and see if the following thread would help in your sceario:
Best regards,
You can set default values for the person and choice fields. This example assumes you are using a form and that the default values should be set when the form is first created.
Person Field:
If(EditForm1.Mode = FormMode.New, {DisplayName: User().FullName, Claims: "i:0#.f|membership|" & User().Email}, Parent.Default)
Choice Field:
If(EditForm1.Mode = FormMode.New, { Value: "YourDefaultValue" }, Parent.Default)
Hi @bansay ,
Do you want to set a Default value within the Person field and Choice field in the Edit form?
Do you generate an app based on your SP List data source?
I assume that you generate an app based on your SP list data source, and want to set a Default value within the Person field and Choice field in the Edit form when the Edit form is in New form? According to the formula you provided, I think there is something wrong with it.
I have made a test on my side, please take a try with the following workaround:
Set the DefaultSelectedItems property of the ComboBox within the Person field data card in the Edit form to following:
If( EditForm1.Mode =FormMode.New, { Claims: "i:0#.f|membership|" & Lower(User().Email), DisplayName: User().FullName, Email: User().Email, Department:"", JobTitle:"", Picture:"" }, Parent.Default )
Set the DefaultSelectedItems property of the ComboBox within the Choice field data card in the Edit form to following:
If( EditForm1.Mode = FormMode.New, { Value: "A" }, Parent.Default )
Please take a try with above solution, then check if the issue is solved.
Please check and see if the following thread would help in your sceario:
Best regards,
User | Count |
---|---|
133 | |
132 | |
97 | |
75 | |
74 |
User | Count |
---|---|
206 | |
196 | |
70 | |
60 | |
52 |