Help

Re: Recordpicker button and adding a blank row

Solved
Jump to Solution
1508 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Jesper_Holmstro
6 - Interface Innovator
6 - Interface Innovator

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

12 Replies 12

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.

kuovonne
18 - Pluto
18 - Pluto

Is your field configured to allow linking to multiple records?

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