> For the complete documentation index, see [llms.txt](https://docs.uppromote.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uppromote.com/settings/affiliate-coupon-settings/allow-affiliates-to-choose-coupon.md).

# Allow affiliates to enter their preferred coupon code while registering

If you want to allow affiliates to choose their coupon code, you can ask them to fill in their preferred coupon code right on the **registration form.**

1. Go to **Settings** > **Link & coupon** > **Coupon settings.** Then, turn on **Auto-generate coupon** and click **Set up**.

<figure><img src="/files/7rNpgWiEd0hTQaArb4h3" alt="set up"><figcaption></figcaption></figure>

2. Add a **sample coupon** that has the rule you want auto-generated coupons to follow.

<figure><img src="/files/vD8tLTEvgJNFhWeSjKX0" alt="add sample coupon" width="563"><figcaption></figcaption></figure>

2. Select the **Coupon name's format** to be **Affiliates select while registering** and fill all other necessary settings, then click **Save**.

<figure><img src="/files/VvUvF75B8gWbTbS6MR82" alt="let affiliate select"><figcaption></figcaption></figure>

After you complete the setup, a **Coupon code** field will be put on your registration form and marked as required. Affiliates then must enter a coupon code upon signing up.

<figure><img src="/files/H2QR1Ek4CUMnZ7G7WMlu" alt="how it look on the registration form"><figcaption></figcaption></figure>

Also, if affiliates choose a coupon that already exists in your shop, there will be a notification for them to change to another coupon:

<figure><img src="/files/6JcQosgydTSjPzebhYIS" alt="error notification"><figcaption></figcaption></figure>
