Post

2 followers Follow
0
Avatar

How to remove an item from a multi pick list?

Hi there,

I already found out how to add an item to a multi picklist by customization, using:

ToString($C_versions_languages) + ";" + versioning_language

Somehow I am not able to remove an item. I already tried using the "ReplaceString" function and replacing it with empty space "", but it is not working.

Can youl help me out with this one?

Thanks a lot!

Simon Sturzenegger Answered

Please sign in to leave a comment.

4 comments

0
Avatar

Hi Simon,

Can you please explain about your use case? Are you doing that in a Custom Action?

Regards,
Tamir

Tamir Avital 0 votes
Comment actions Permalink
0
Avatar

We have a multi pick list field called "$C_versions_languages" that has values like: DE-EN; EN-EN; EN-FR It's for movies where the first letters are the spoken language (DE = german) and the second letters (EN = english) are the used subtitles.

We have one master project for the movie, let's say "MOVIE EXAMPLE" and every language version is a subproject. For example "MOVIE EXAMPLE DE-EN VERSION"
All the languages that are chosen in the subproject are transfered to the master project. Our users should be able to see at a glance in the master project what versions are available.

When a subproject (a language version in this case) is deleted, the language should be removed from the master project as well.

Hope that helps!

Simon Sturzenegger 0 votes
Comment actions Permalink
0
Avatar

Sorry, forgot one answer: Yes I am doing this in a custom action, using whenever a record is deleted.

Simon Sturzenegger 0 votes
Comment actions Permalink
0
Avatar

Hi Simon,

Best practice here is to add the Multi pick list as a variable (user input) on the custom action, populate the value using default (in your case - $C_versions_languages) and then basically override the field with the user input by using regular Update Field action.

Let me know if it makes sense.

Good luck!
Tamir

Tamir Avital 0 votes
Comment actions Permalink