# Configuring a conditional assignee

Using this feature, we can assign the buttons created for a step to the users whose phone numbers or email IDs match with the ones entered in any of the fields of a form.

Refer to step 6 of the **Reimbursement Workflow** as described in the [**Overview** ](https://docs.senpiper.com/workflow-builder/introduction/overview)section. The member from the **Admin Team** to be assigned to the step is selected based on the **Phone Number** field in the form. The system will then match the value of this field with the phone numbers of the users in the system. Thus, the member of the **Admin Team** is the conditional assignee here.

To configure a conditional assignee for a step,

1\.    In the node, click <img src="https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mc6E3BSGr4i8kVdH38k%2F-MhJPinvBL6KjOF4lWxU%2F-MhJQdeYDVsJXEKuLzbo%2FConditional%20assignee%20icon.png?alt=media&#x26;token=18bbbcb5-3203-4193-813b-cec4c3274a36" alt="" data-size="original"> .

<figure><img src="https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FVgKd68bnvQrpRvPid3sg%2FConditional%20Assignmenet.png?alt=media&#x26;token=9c32f944-8ee2-4aab-8f72-e49e224ee18b" alt=""><figcaption><p><em>Conditional Assignee</em></p></figcaption></figure>

&#x20;The **Define actions** window is displayed. You can set up a conditional assignee for the current step of the workflow here.

<figure><img src="https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FAGoac1FWoWSPq8CRnbTK%2Fimage.png?alt=media&#x26;token=7ea9672b-c0ac-4ee9-9d74-b678a025fe6f" alt=""><figcaption><p><em>Conditional Assignment</em></p></figcaption></figure>

2\.    Under the **Select form field from which email/phone will be picked up for the user details mapping,** select the field from which you want to match the value to the one in the user’s profile.\
As we see in the image above, we have selected the **Phone Number** field of the form.

3\.    Under **Select the user profile field which should be picked for assignment**, select the user list from which you want to assign a user to this step, and then select the field in the user profile to be matched with the value of the field in the form.\
As we see in the above image, we have selected the user list as **EMPLOYEE** and the field in the user profile as **phone**.

{% hint style="info" %}
The above selections ensure that the next assignee from the **Audit Team** is selected based on the **Phone Number** field in the form. The system matches the value of this field with the phone numbers of the users in the **EMPLOYEE** user list.
{% endhint %}

4\.    To save the settings, at the bottom right, click **Apply**.\
&#x20;The settings are saved, and the step will be assigned to the user whose profile details match the field value in the form.
