最後は,Pageのデフォルトの「ボタン」を非表示にします。

0. 前回までのプログラム

以下のように入力してください。

// Text/Instructions
this.options.items.push({
          "type": "text",
           "title": "調査",
           "content": "以下の質問項目をよく読み,あなたに当てはまる選択肢をすべて選んでください。"
        })

// Check all that apply
const items = [
  '飼っているのは?', 
  '写真集を持っているのは?', 
  '大好きなのは?', 
  '見たことがあるのは?'
];

//各項目と尺度名を配列に格納
var itemsArray = [];
var itemNO;

for(let i = 0; i < items.length; i++){
  itemNO = i + 1;
  itemsArray.push(
    {
      "label": items[i],
      "name": "Q"+itemNO
    }
  )
}

//ランダム順にする場合に並び替え
itemsArray = this.random.shuffle(itemsArray)

for(let i = 0; i < items.length; i++){
  itemNO = i+1;
  this.options.items.push({
          "required": false,
          "type": "checkbox",
          "options": [
            {
              "label": "犬",
              "coding": "1"
            },
            {
              "label": "猫",
              "coding": "2"
            },
            {
              "label": "鳥",
              "coding": "3"
            },
            {
              "label": "兎",
              "coding": "4"
            },
            {
              "label": "亀",
              "coding": "5"
            }
          ],
          "label": itemNO +". "+ itemsArray[i].label,
          "name": itemsArray[i].name,
          "shuffle": false
        })
}

// Raw HTML
this.options.items.push({
          "type": "html",
          "content": "<div class=\\"content-horizontal-center\\"><button>次へ</button></div>"
        })

1. 下段の「ボタン」の表示

次の画面に進むためのボタンに関しては以下のコマンドで制御することが出来ます。

ボタンを非表示にするには以下のように入力します。

this.options.submitButtonPosition = 'hidden';

以下が完成版です。

// Text/Instructions
this.options.items.push({
          "type": "text",
           "title": "調査",
           "content": "以下の質問項目をよく読み,あなたに当てはまる選択肢をすべて選んでください。"
        })

// Check all that apply
const items = [
  '飼っているのは?', 
  '写真集を持っているのは?', 
  '大好きなのは?', 
  '見たことがあるのは?'
];

//各項目と尺度名を配列に格納
var itemsArray = [];
var itemNO;

for(let i = 0; i < items.length; i++){
  itemNO = i + 1;
  itemsArray.push(
    {
      "label": items[i],
      "name": "Q"+itemNO
    }
  )
}

//ランダム順にする場合に並び替え
itemsArray = this.random.shuffle(itemsArray)

for(let i = 0; i < items.length; i++){
  itemNO = i+1;
  this.options.items.push({
          "required": false,
          "type": "checkbox",
          "options": [
            {
              "label": "犬",
              "coding": "1"
            },
            {
              "label": "猫",
              "coding": "2"
            },
            {
              "label": "鳥",
              "coding": "3"
            },
            {
              "label": "兎",
              "coding": "4"
            },
            {
              "label": "亀",
              "coding": "5"
            }
          ],
          "label": itemNO +". "+ itemsArray[i].label,
          "name": itemsArray[i].name,
          "shuffle": false
        })
}

// Raw HTML
this.options.items.push({
          "type": "html",
          "content": "<div class=\\"content-horizontal-center\\"><button>次へ</button></div>"
        })

this.options.submitButtonPosition = 'hidden';