You are viewing limited content. For full access, please sign in.

Question

Question

Forms tokens to nice format in Workflow

asked on October 22, 2018

I am sure that many of us have faced this problem when working with a Workflow that is started by a Form:

If the Form has a checkbox or any kind of multiple values, how do you format the email (for example) to include just selected tokens?

For example:

Now if you have an output email that asks for all selections, what do you do?

Currently, the formatting can look something like this (because all variables are included):

From LF Forms || Source: || Payment Plan selection(s): (FA) Grants: False Loans: True Ouside Schp: False ( per  from ) || (VA)  GI: False () Other VA: False (Tuition Assistance) ||    || Employer reim:  ( per )  || (Cash) Payment Plan: False Upfront: False 
Opt out of books? Yes, opt out.

Lots of extra things that may not be filled out for this particular case that are simply cluttering this note!

I could use Parallel Conditions to check selections and then tokens from there - great but since you have to have groupings then you will still have extra characters. Like the || for dividers, well if there is nothing in that grouping should the divider exist?

 

Anyone else that has a solution to something like this?

2 0

Answer

SELECTED ANSWER
replied on October 23, 2018 Show version history

Retrieve the Business Process Variable, then Set the Business Process Variable using the token editor (token dialog) to set an index separated by whatever character you want ("||" or ","). I haven't tried this, but this would be the first thing I would try.

 

If that doesn't get it, you could use a For Each Value on the variable retrieved from the form. Modify a new multi-value token with those values and then try using the token editor on this new multi-valued token.  

Good luck!

 

0 0

Replies

replied on October 23, 2018

Hi Lidjia,

I apologize, but I'm not 100% clear on what you're asking.

If you retrieve the Checkbox as a whole, it should only return the values that have been selected, in which case you just add the indexing and a separator like Chris said.

Are you saying you only want the selected values, or that you want all of the values regardless of whether or not they were selected?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.