# 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="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FwfJGDrfGJdHbSurVPJd3%2Fimage.png?alt=media&#x26;token=52ebbd1c-a4c5-4614-97c5-bb2da7a18d5d" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2F1XojbFrFKgk9VPlpbERX%2Fimage.png?alt=media&#x26;token=4a1f22aa-3d06-4bfd-8100-ee9e2e8a1dc7" alt="" 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="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FeuLEBCcyd687xtn0bMT8%2Fimage.png?alt=media&#x26;token=793be3e3-b018-4dfb-b39f-f226ff094615" alt=""><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="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2FFcvPGRY2mXMTHWmXwYX1%2Fimage.png?alt=media&#x26;token=69bad266-3f03-412b-9840-3c2bcbb78ac1" alt=""><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="https://2915776664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnqRFg4of77qA6qOdUp%2Fuploads%2F8EAgQCazvD1on5q9u4t2%2FScreenshot_10.png?alt=media&#x26;token=04036863-fc89-45ad-a378-c2b9279f340f" alt=""><figcaption></figcaption></figure>
