I am new to scripting & know that I dont know exactly what I am doing however I like to learn & am kind of learning on the job taking it 1 step at a time.
When creating a script the following code will allow the user to choose which table & field they want to use in the script from the script settings.
// Click the "gear" icon in the top right to view settings
let config = input.config({
title: "Script Title",
description: "Script Description",
items: [
input.config.table('selectedTable', {
label: 'Table to use',
description: 'Pick any table in this base!'
}),
input.config.field('selectedField', {
label: 'Field inside the above table',
parentTable: 'selectedTable',
})
]
});
I want to be able to select multiple fields. But I only want to be able to select:
- Fields that are either a singleLineText or a multilineText.
- Only be able to select each field once.
How would I do that?