+1, very much needed
Status: Delivered
Status history
to the all the ones that added a +1 here, pls share this in your organizations so that we can reach a higher # of comments and upvotes! This feature will make our life easier!
This would make cleaning up the property so much easier! One case scenario is if you want to remove a single old value from the property, but there are still many contacts that have that value, how can you clear only that value so to delete it from the property?
@JoshuaW (and anyone interested), while I waited for this to be implemented, I wrote a script to be used in a custom code workflow action that removes a specific option from a multi-select property just like we all want. Below you’ll find the code and screenshots so you can see how I did it. You just have to replace the race_interests and last_race_interest_removed constant names and properties with your own use case’s:
exports.main = async (event, callback) => {
/*****
Use inputs to get data from any action in your workflow and use it in your code instead of having to use the HubSpot API.
*****/
const interests = event.inputFields['race_interests'];
const interest_removed = event.inputFields['last_race_interest_removed'];
let raceinterests;
if(interests.includes(";"+interest_removed)) {
raceinterests = interests.replace(";"+interest_removed, "");
} else if (interests.includes(interest_removed+";")) {
raceinterests = interests.replace(interest_removed+";", "");
} else if (interests.includes(interest_removed)) {
raceinterests = interests.replace(interest_removed, "")
} else {
raceinterests = interests;
}
/*****
Use the callback function to output data that can be used in later actions in your workflow.
*****/
callback({
outputFields: {
race_interests: raceinterests
}
});
}
I basically just included the actual multi-select property (Race Interests) and in a separate property, the one value I want to be removed from it (Last Race Interest Removed):
Then, in the output, I just add race_interests, which essentially will just return the raceinterests variable we created in the code, which contains all the original values MINUS the one we removed.
Finally, after the custom code action, I just add a “Copy property value” action where I copy the output from the custom code and paste it in the actual multi-select field.
I hope this helps!
Best,
Gerardo Fallas |
|
This feature is crucial, as in current workflows it is possible to add value via workflow. To be able to correct mistakes that have been made with workflows, it is crucial to also be able to remove values from a multi-check without replacing all past values. We use workflows to sign up for waiting lists and applicatons for different startup programs. Therefore, it is crucial to be able to structurally remove values from this multi-check box.
Adding my comment as well that my company would love to have this feature! Without it, we must create lots of properties where one would do if only we could clear certain values without losing all of the other associated values within the property.
Yes I totally agree with this. I was needing to remove just 1 value from a bunch of contacts the other day (we were deleting that particular value from the property), and I couldn’t do it. Had to manually go through each contact that had that value and take it off so that any other multi-select values they still had remained.
This is needed so much.
This not being done in 4 years should be taken as an insult to the community. The workarounds needed to achieve a removal of a tag is just nonsense.
We really need to get this future, it is so simple I can’t believe HubSpot hasn’t this implemented already!
+1!
+1 This is so valuable and makes so much sense to have for automation, as many have mentioned, since the tags are not supported.
I think that the number of comments on this thread should indicate that it is time or @hubspot to reply on this one and include it in the roadmap.
It would be great if HubSpot could add this feature. Much needed!
Cannot belive that this is still an idea since 2020. We need to be able to remove values without clearing all the rest ones. This should be an option in the WF
Now that this functionality is live for bulk edits: Product Updates, it would be amazing if we have this available in workflows as well!
Please make this possible in workflows as well, just as in bulk edit on for example index page. Thanks in advance!
Agree @AlexBril - been waiting a long time. Hard to manage workflows for ‘tagging’ if we cannot both add and remove using workflows
+1. We need this. The ability to treat a mutli-checkbox property values as tags that can be added/removed via workflow would be a huge value add.
This is the exact use case we want to handle more easily. The main reason is not about me managing HubSpot for the company; it’s mostly about my colleagues. Using those fields as simple tags for lists and reports (and eventually as triggers for workflows) is much easier to explain and handle for a “common” user. It’s quite difficult to explain the situation with all these dataset properties in a relational database, rather than just saying: mark it here.
There are many ways to solve this: like a dedicated tag property, or something like a property with dynamic terminology, which allows users to add new terms on their own.
However, removing multi-checkbox properties is a desired feature.
And if a developer reads this: thanks a lot for all the new property features. Many things have become more easily achievable or even newly possible in the last few months. Much appreciated!
This would be so helpful. I am using a multi check box property as a quick reference check list for a contact and the boxes should be ticket or unticked by different workflows. I have found that I cannot untick just one check box via a WF and leave the others. I gather a custom code might work but need to learn more.
Here’s a custom coded workaround,
The code will remove the value “Item 2” from the existing checkbox.
Essentially you input the current property, which will be a list of all the selected values
The code removes the value from the list.
We output the new list → you have to specify all the accepted values in the enumaration output.
You can then use the custom coded action output as the data that goes into property (it will replace all the existing values with the new list 1 item removed)
//Define value to be removedconst removeValue = "Item 2";exports.main = async (event, callback) => { // Get existing values from the input property "my_checkbox" const existing_values = event.inputFields['my_checkbox']; // Split the string into an array using ';' as the delimiter const valuesArray = existing_values.split(';'); // Filter out the value to be removed const filteredArray = valuesArray.filter(item => item !== removeValue); // Join the array back into a string using ';' as the delimiter const updatedList = filteredArray.join(';'); callback({ outputFields: { new_values: updatedList } });}






