.createElement('option');
        opt.value = option;
        opt.text = option;
        contentNodeName.appendChild(opt);
      }

      // Populate the preview page option dropdown
      while (previewPage.options.length > 0) {
        previewPage.remove(0);
      }
      let previewSelectOptions = msg.previewPageOptions;
      for (const option of previewSelectOptions) {
        var opt = document.createElement('option');
        opt.value = option;
        opt.text = option;
        previewPage.appendCh