(Edited)
Hello,
I am customizing a sharepoint list and one of the columns in there utilizes a another list(lookup).
Based on a selection, a user can indicare whether an employee exists in the lookup list or they want to enter a new employee.
If the employee does not exist and they want to enter a new employee, this is okay.
However, if the employee exists and they chose say John from the list, there are fields I have provided for users to enter a new employee infomation such as empId and empAge. These field will hide since the user already exists and the information(empId and empAge) is already in the lookup list.
What I want to happen is, when the user submits the form and selects an existing user in the lookup column, the fields I have provided for users to enter new employee information like empId and empAge, be filled with the infomation from the lookup column.
Eg.
New Form looks like this
Emp Exists(DataCardValue1) - Yes
Emp - John
EmpId - (This will be blank and hidden since DataCardValue1 is 'Yes')
EmpAge - (This will be blank and hidden since DataCardValue1 is 'Yes')
Submit
Lookup List
Employee EmpId EmpAge
John 231 43
Sam 123 32
This is what I want to get on the edit and view form
Emp Exists(DataCardValue1) - Yes
Emp - John
EmpId - 231
EmpAge - 43
I have datacards that contain the references from the lookup list.
Form looks like this
Emp:EmpAge(DataCardValue4_1)
Emp:EmpID(DataCardValue5_1)
What I want to do is to fill in the blank spaces the user didn't fill with the information i have from the list after they submit the form
I can use flow to semi do this but I was hoping for a powerapps solution
I have tried if(isblank(datacardvalue2), datacardvalue41.selected, Parent.default), obviously this isn't working...
Any solutions or ideas on how to go about this?