Skip to main content

Hi all,

 

I have added a Multiselect field to my Generation Form, however when multiple values are selected, they are separated by a semicolon. See the example below:

Registered;Closed-ended;Private Investment Fund

 

I am trying to separate each of the values with spaces instead and make it look as below:

Registered Closed-ended Private Investment Fund

 

How can I achieve this configuration?

 

Many thanks for your support.

Hello ​@Samuel Velasco 

Welcome to DocuSign Community!

You have to do it in the workflow and for that you need to use c# expression in “update variable value”.

Let me know if you need the C#?

Thanks!


Hello ​@Samuel Velasco 

Welcome to DocuSign Community!

You have to do it in the workflow and for that you need to use c# expression in “update variable value”.

Let me know if you need the C#?

Thanks!

Hi ​@Pawan Gangwani,

I would need the values of the field to be displayed in the .docx document. Is this something that can be achieved though XML manipulation?

Many thanks in advance for your help!

Regards,

Sam


Hello ​@Samuel Velasco 
 

Yes, this can be achieved by first storing the field value in a variable. Using C#, you can then replace the semicolons (;) with spaces using something like:

string A = "Registered;Closed-ended;Private Investment Fund";
string B = original.Replace(";", " ");
return B


After that, you can merge the new value in doc using “Merge Tracked Content’ and for this step, you need to write “Track Name” merge tag.
 

Thanks!

👪 DocuSign Community Leaderboard Top 5 contributor
💹 Ranked #3 in the Reply Royalty category in DocuSign Community Wrapped 2024
🤝Let’s LinkedIn and rollPawan Gangwani - EY | LinkedIn


Hello ​@Samuel Velasco 
 

Yes, this can be achieved by first storing the field value in a variable. Using C#, you can then replace the semicolons (;) with spaces using something like:

string A = "Registered;Closed-ended;Private Investment Fund";
string B = original.Replace(";", " ");
return B


After that, you can merge the new value in doc using “Merge Tracked Content’ and for this step, you need to write “Track Name” merge tag.
 

Thanks!

👪 DocuSign Community Leaderboard Top 5 contributor
💹 Ranked #3 in the Reply Royalty category in DocuSign Community Wrapped 2024
🤝Let’s LinkedIn and rollPawan Gangwani - EY | LinkedIn

 

Hi Pawan,

Thank you very much for this! I will give it a try. I appreciate your help, as this solution may also assist with other issues not directly related to this matter.

 


Reply