diff --git a/src/Plugin/Block/SimplenewsSubscriptionBlock.php b/src/Plugin/Block/SimplenewsSubscriptionBlock.php
index 9372461..9cd1c37 100644
--- a/src/Plugin/Block/SimplenewsSubscriptionBlock.php
+++ b/src/Plugin/Block/SimplenewsSubscriptionBlock.php
@@ -120,6 +120,14 @@ class SimplenewsSubscriptionBlock extends BlockBase implements ContainerFactoryP
       '#maxlength' => 255,
       '#default_value' => $this->configuration['message'],
     );
+    $form['unique_id'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Unique ID'),
+      '#size' => 60,
+      '#maxlength' => 255,
+      '#description' => t('Each subscription block must have a unique form ID. If no value is provided, a random ID will be generated. Use this to have a predictable, short ID, e.g. to configure this form use a CAPTCHA.'),
+      '#default_value' => $this->configuration['unique_id'],
+    );
     /*if (\Drupal::moduleHandler()->moduleExists('views')) {
         $form['link_previous'] = array(
           '#type' => 'checkbox',
@@ -149,7 +157,7 @@ class SimplenewsSubscriptionBlock extends BlockBase implements ContainerFactoryP
     $this->configuration['message'] = $form_state->getValue('message');
     //$this->configuration['link_previous'] = $form_state->getValue('link_previous');
     //$this->configuration['rss_feed'] = $form_state->getValue('rss_feed');
-    $this->configuration['unique_id'] = \Drupal::service('uuid')->generate();
+    $this->configuration['unique_id'] = empty($form_state->getValue('unique_id')) ? \Drupal::service('uuid')->generate() : $form_state->getValue('unique_id');
 }
 
   /**
diff --git a/src/Tests/SimplenewsSubscribeTest.php b/src/Tests/SimplenewsSubscribeTest.php
index 6362445..5c1647d 100644
--- a/src/Tests/SimplenewsSubscribeTest.php
+++ b/src/Tests/SimplenewsSubscribeTest.php
@@ -876,4 +876,26 @@ class SimplenewsSubscribeTest extends SimplenewsTestBase {
     $this->assertNoFieldChecked('edit-subscriptions-' . $newsletter_id);
   }
 
+  /**
+   * Tests Creation of Simplenews Subscription block.
+   */
+  public function testSimplenewsSubscriptionBlock() {
+    $admin_user = $this->drupalCreateUser(array(
+      'administer blocks',
+    ));
+    $this->drupalLogin($admin_user);
+    $this->drupalGet('/admin/structure/block/add/simplenews_subscription_block/classy');
+    // Check for Unique ID field.
+    $this->assertText('Unique ID');
+    $edit = array(
+      'settings[unique_id]' => 'test_simplenews_123',
+      'settings[newsletters][default]' => TRUE,
+      'region' => 'header',
+    );
+    $this->drupalPostForm(NULL, $edit, t('Save block'));
+    $this->drupalGet('');
+    // Provided Unique ID is used as form_id.
+    $this->assertFieldByXPath("//*[@id=\"simplenews-subscriptions-block-test-simplenews-123\"]", NULL, 'Form ID found and contains expected value.');
+  }
+
 }
