How do i change the row for an item?

Hello everybody!
This is my first topic in the community, and i think maybe this is an easy question for the most of you, but a cant seem to figure it out. :confused:

I am building an webstore template and in the first pic you can see the productlist.
In this list i have different options for the product and one of them is the category for the product.

I have a dropdown element to choose between categories, as you can see. :slight_smile:

But my problem is, how to delete this product from the category, when value is changed?
When a user change the category of the product, it needs to be deleted from the previous category if you understand? :slight_smile:
See the pictures below:


This pic is from when the product is inside Category 1, ok, no problem to add it.


And here is the problem. When choosing Category 3 in the dropdown it adds it inside C3, but also still in C1.

Can anyone help me? :slight_smile:

Thank you so much.

Are you using the action “Make change to… Category” to remove the product from it’s old category?

on dropdown changed workflow :

save Product in custom state and then assign new category after that check that product if exist in any other category then delete from there if in any others category

if you have any query you can schedule a meeting with me will try to help you out

schedule meeting here : Calendly

Hello, @ramaarana7

Yes, i am, but how to make it change from a category to another? It is no problem to add it in a category, but i can’t make it go away from another category. It should only be in one category at the time. :slight_smile:

Hello @Tassawar

Can you explain more or do you have any pics of this workflow? :slight_smile:

Thank you very much. :slight_smile:

Share how you’ve got your workflows set up and I’ll check it out

Ok, thank you very much. :slight_smile:

This is the workflow for adding the product to the category.



And here is the workflow to delete it from the other category. I know i have done something wrong here, but, i have seen a lot of videoes, so i might ave mixed up something. :smiley:


Thank you again @ramaarana7

I am not using option sets, because the user should be able to create categories themselfs. :slight_smile:

I’m not understanding why you wouldn’t be using an option set?

Why would you want users to create whatever category they wanted? That’s not a good practice.

Also, to do what you want, you need to use a custom state.

A custom state will solve your problem.

This is the best solution to your problem if I’m understanding it correctly.

If you read the headline, i am building an webstore template. That means, people who use my template must be able to make their own categories for their shop. Do you mean i should put in categories for all possible items in the world? Some sell clothes, some sell electronics, some sell food.. So i do not understand your statement.

One customer may call ‘electronics’ something like ‘electrical’, and you’ll have a million categories that make no sense.

You really need to rein in the categories and decide for yourself what you want them to be called.

If you look at an app like Groupon (for example), they spell out the categories.

Users should not only not be trusted with creating categories, but they’ll find it easier to choose from the options you list.

a. Set the Produkter i kategori to a “Categori” type instead of a list of categories.

This way you’ll set a individual category for each product.

b. if you want to keep multiple categories, then add a Step just after the trigger to “Make changes to the Produkt” → Produkter i kategori clear list.
This will remove any previous element in your list.