Here is a simple example on how to trigger a shortcut when hitting enter in the textfield (and passing the textfield value as input). This makes use of the "run real javascript" action. You need to replace the values for shortcut, menu name and item name with the ones of your menu / the shortcut you want to trigger.
(async () => {
let shortcut = "THE_NAME_OF_THE_SHORTCUT";
let menuName = "THE_NAME_OF_THE_MENU";
let itemName = "THE_NAME_OF_THE_TEXTFIELD_ITEM";
let textFieldValue = await callBTT("get_menu_item_value", {
menu_name: menuName,
item_name: itemName,
});
let result = await runAppleShortcut({
name: shortcut,
input: textFieldValue,
});
returnToBTT(result);
})();

