@jo-cpa I’m not sure I understand your query correctly. There is an onCheckChange
listener for the checkbox that can fire the query when it is checked. You can also use a checkbox group and onSelectionChange refer to the {{CheckboxGroup1.selectedValues}}
Does that answer your question?
I’m revisiting this topic. We’ve migrated to Zoom for UC.
I’ve got some webhooks set up for these Zoom Chat channels (with the checkboxes).
I’d like to be able to enter the message to post the “checked” channels… with the one Submit button.
Each channel will have its own API to post to the channel/webhook.
Hey @jo-cpa, if you want to run a query based on conditions, you can use JSObjects. In this case, we can write a conditions that checks if a checkbox is selected and run the related queries.
Here’s a snippet:
try {
if (CheckboxGroup1.selectedValues.includes("Selected Value here")) {
const data = await Api1.run();
return data;
}
} catch (error) {
showAlert('Failed to fetch );
}
return false;
}