Hi guys
I hope some of you scripting geniuses can help me.
I have a button In a task list and want to add a button to add a new row in that list under that project instead of clicking the “plus sign” underneath the row.
Can someone help me with the script?
Sinve I have the button and record picker script we know what row we’re at so to add a row/task shouldn’t be so complicated? But its complicated for me…
The script look like this know :
// Change this name to use a different table
let table = base.getTable(“Tasks”);
// Prompt the user to pick a record
// If this script is run from a button field, this will use the button’s record instead.
let record = await input.recordAsync(‘Select a record to use’, table);
if (record) {
// Customize this section to handle the selected record
// You can use record.getCellValue(“Field name”) to access
// cell values from the record
output.text(You selected this record: ${record.name}
);
} else {
output.text(‘No record was selected’);
}
Much appreciated if someone could advice.
Jesper