Nov 06, 2024 08:12 AM
Hi,
I'm using automations as a workaround to add more options to a dropdown menu, per Airtable Support's instructions, but it's not working correctly. Currently, a user can select "Other" from a single select and enter the "Other" option in a separate text field. The automation is supposed to pull that text back into the original single select field as a new option in the dropdown menu. Right now it is only pulling the starting character, rather than the whole string of text. I've tried deleting and reconfiguring several times, but it still is not working. I've attached some screenshots for clarity.
Thanks for your help!
K
Nov 06, 2024 09:27 AM
Hi,
It's hard to say without details about 'Airtable Support's instructions', almost all community members are just regular users. I guess you have a trigger 'When {Architect other entries [DON'T..... } is not empty", so automation runs right after you enter any letter in the field.
I think you can also create a checkbox field "Add option" and change the trigger condition to run when text field not empty AND checkbox is checked.
I can also suggest to add another 'Update record' step - when option added to select, clear text field and uncheck checkbox.
Nov 06, 2024 10:34 AM
Hi!
I just tested the method you described, and it should work. It will be hard to troubleshoot without access to the base.
I would advise to try adding a pause between the trigger and the update. This would look something like:
Like I said, it's hard to troubleshoot as is, seeing as theoretically your automation should work, but it's worth a shot. Like @Alexey_Gusev suggested, it could be a timing thing.
Here's a sample "wait x seconds" script:
function sleep(ms) {
const end = Date.now() + ms;
while (Date.now() < end) {
// Wait for nothing
}
}
console.log("Start");
sleep(5000);