Jan 19, 2022 03:16 AM
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
Solved! Go to Solution.
Jan 19, 2022 09:33 AM
I was thinking if I added a button with a script in the table, I could open the record in Interface(doubleclick so I see all the fields) and click the button.
Jan 19, 2022 10:04 AM
Is your field configured to allow linking to multiple records?
Jan 19, 2022 10:08 AM
Bingo!! you just saved me another day of head scratching and frustration!
Now I can Add when there is already records there.
Thanks Kuovonne!
/Jesper