Selamat Siang Suhu, Mohon bimbingannya. Kenapa script ini tidak bisa saya gunakan di spreadsheet
//klinikhewan
var sheetId ="1sFYhODP25vT1GKGkhBNQ4TL4xFOFg-eD2Lon0LSeE1E"
var formId = "1XvytpU8jEDy7mVrIu712rzk58X0VC_9MUKe0Kc7L3Rg"
function myFunction(){
var ss = SpreadsheetApp.openById(sheetId)
var sheet = ss.getSheetByName("Sterilisasi")
var form = FormApp.openById(formId)
//Pertanyaan Nomor KTP bertipe Teks jawaban singkat ()
var data = [...new Set (sheet.getDataRange().getDisplayValues().map(row=> row[5]))].join('|')
var item = form.getItems().filter(item=>item.getTitle() == 'Nomor KTP')[0].asTextItem()
var pattern = '(${data})'
var textval = FormApp.createTextValidation().setHelpText("Nomor KTP Sudah Digunakan!!!").requireTextDoesNotMatchPattern(patten).build()
item.setValidation(textval)
}