hi,
I am developing a custom flow trigger which is needed some configuration before merchant can use it, is it possible to add custom configuration for triggers?
i need to implement something like Flow’s Scheduled time Trigger:
You should be able to add additional fields to your trigger via the shopify.app.toml file: Flow trigger reference
[[extensions]]
name = "Auction Bid"
type = "flow_trigger"
handle = "auction-bid"
description = "Your description"
[settings]
# Adds a customer selection field
[[settings.fields]]
type = "customer_reference"
# Adds a single line text field
[[settings.fields]]
type = "single_line_text_field"
key = "your field key"
There trigger can have multiple fields, and of different types such as:
I’ve used those setting, but it will not render anything on trigger setting,
It seems those setting are used for defining the conditions of trigger and merchant can use them on Condition nodes based on the values that triggered the flow.
No you cannot add configuration fields on the trigger itself. Flow currently uses those as a way to filter the event subscription for a few triggers, but those are very much tied to the event/subscription. Since a trigger does not call your code, I’m not sure how having configuration fields would benefit you. What are you trying to do?