
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 21, 2022 06:04 AM
I was wondering if there’s any script that allow me to check/ uncheck the box? I can only do one but I want to make a toggle checkbox.
This is the script for check only
let table = base.getTable("Product List");
let record = await input.recordAsync("Interest", table);
let recordId = record.id;
await table.updateRecordAsync(recordId, {
"Interest" : true,
})
Solved! Go to Solution.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 21, 2022 06:30 AM
Try getting the current value of that record’s checkbox field and just inverse it using !
.
Something like this (untested code):
await table.updateRecordAsync(recordId, {
"Interest" : ! record.getCellValue("Interest"),
})

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 21, 2022 06:30 AM
Try getting the current value of that record’s checkbox field and just inverse it using !
.
Something like this (untested code):
await table.updateRecordAsync(recordId, {
"Interest" : ! record.getCellValue("Interest"),
})

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 21, 2022 06:39 AM
Thank u so much. It works perfectly.
