Source Configuration Form
The form belongs to a plugin funnel element.
Connect the Form
Enable the embedded form when users need to select a counter, advertising account, or other settings. The form uses Senler Bridge 2.0.0 with funnel_configurator mode. After connecting Bridge, register a handler:
bridge.onFunnelConfiguratorSubmit(async () => ({
kind: "funnel_configurator",
configuration: { counter_id: selectedCounterId },
data_source_key: `metrika:counter:${selectedCounterId}`,
}));
context.launch includes app_id, project_id, installation_id, funnel_id, nullable source_id, metric_key, element: { id, key, title }, and configuration. Configuration contains settings only; tokens remain on the application's server. The Cabinet Save button requests the configuration through Bridge. A form error keeps the dialog open.
Identify the Data Set
The form result requires data_source_key: 1–256 characters from A–Z, a–z, digits, and ._:/-. It identifies the dataset, such as a counter or advertising account, and stays unchanged when renaming or changing presentation settings. A different key or external ID scope requires replacement confirmation: the previous connection is soft-deleted and a new one is created in its place. Saved facts remain with the previous connection. For an element without an embedded form, Cabinet uses the element's permanent key. context.launch.metric_key lets the form choose fields for the selected metric; context changes arrive through onContextChange.