Hi,
I have an app where the users select there name from a dropdown, they can also select other users (in this case visitors or guests).
I get all the names from a online sharepoint list called EmployeeNamesList using the following code on start function
If(
Connection.Connected,
ClearCollect(
colNames,
{Name: ""}
);
Collect(
colNames,
ShowColumns(
EmployeeNamesList,
"Name",
"EmploymentStatusType"
)
)
)
;
I then use the following code on a dropdown
SortByColumns(Distinct(colNames, Name),"Result")
However i would like the users to have their own name displayed as default whilst also having all the other names below if they need to sign someone onto the system that doesnt have an account.
Is it possible?
Solved! Go to Solution.
On the DefaultSelectedItems Change formula to:
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @ShaneITAutomate :
Please set the combobox's DefaultSelectedItems property to:
{Result:User().FullName}
Best Regards,
Bof
In the Default of the Dropdown:
LookUp(colNames,Name = User().FullName,Name)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Consider Checking My Youtube Channel
Thanks but it doesnt work i get the error "Expected Record Value"
The list im grabing from is just a text column filled with names First Last, its not connected to a person column
is it a Dropdown or a Combobox?
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Consider Checking My Youtube Channel
Combobox
On the DefaultSelectedItems Change formula to:
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @ShaneITAutomate :
Please set the combobox's DefaultSelectedItems property to:
{Result:User().FullName}
Best Regards,
Bof
User | Count |
---|---|
252 | |
107 | |
90 | |
51 | |
44 |