Add customer tag based on form metafield value

People can fill out the form on my homepage. Based on what they fill out I want the values from the metafield to be added as tags to their customer account.

I have following flow right now, but with this flow I need to repeat it for every single answer option. is there an easier way.

I thought about adding liquid code like

{%- assign tag_to_add = custom.metafields | where: “namespace”, “custom” | where: “key”, “2_i_can_comfortably_use” | first -%}{{ tag_to_add.value }}

but I dont really know much about code. Can anyone help me out?

You can add variables to “Add customer tags” by clicking the </> field.

Metafields can be accessed individually in Flow by choosing “Customer / metafield (requires arguments)” . One you do that, you should not really need code to insert them as tags.

Hello :waving_hand:

This is a perfect use case for Customer Fields (if you’re open to an app solution). We also support two-way syncing of custom field values that use namespaces other than <customer_fields>
I hope this helps :blush: