Duplication of component and related variables at once

Hi, I made an element for Autocomplete address from Google Places API:



This element uses a set of variables for its work, for init_value in inputs and for workflow
Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2024-07-31 Π² 17.30.40

Now a question, I need to copy this component to all forms where it will be used (many forms). And in some forms there can be 5 such components in one form

Is it possible to do duplicate variables while duplicating the component?

If I just click duplicate, the component is duplicated, but the variables remain the same


What is the best solution for this, would I really have to manually create variables for each component and reassign them within the component and workflow?

Hi @andrii_r :wave:

The best solution for this is to use component variables. That way, the variables are scoped to each instance of the component.

Working with component variables can be a bit daunting at first but is very helpful to maintain and scale your project.

You can learn more about component variables here and here.

I hope that helps!

1 Like

Thank you, @Joyce, very helpful as always :slightly_smiling_face:

1 Like

Awesome! Glad I could help :slight_smile:

It works perfectly :tada: :tada: :tada:

Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2024-08-03 Π² 12.29.56

1 Like