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

Question

Question

Invoke business process with a collection of checkbox values

asked on April 8, 2022

I've got a Workflow which is invoking a Business Process and loading a collection with data, however one of the items in the collection is a checkbox. 

In the Workflow the variable is correct:

semester:
Summer
Fall, Spring
Fall, Spring
Spring
Spring, Summer

 

But when the Business Process is invoked the variable value is incorrect:

Applications/Semester:

Summer

Fall

Fall

Spring

Spring

 

It seems that only the first value is getting moved to the Invoked process.

Any ideas as to how to correctly load a checkbox with multiple selected values when invoking a business process?

 

0 0

Answer

SELECTED ANSWER
replied on April 10, 2022

Hi Will,

Is there a space following the comma in checkbox value? Could you remove it and try again?

0 0
replied on April 11, 2022

This works, however I'm curious as to why when the Checkbox variable is used to save metadata field data to a multi-value field it shows up as a single value with a string of comma(space) separated values... which then needs to have the additional spaces removed in order to use the values back to checkbox field.

 

1 0
replied on January 9, 2023

Will,

I'm running into a very similar thing.  From a workflow I'm retrieving the value(s) of a checkbox on a form.  Then I'm loading those values to a separate form to prepopulate the same checkbox on a new form.  Only the first value that was checked, of nine possible, is actually loading.  I'm pretty sure I have it narrowed down to the spaces between values.  

Were the values you load to the checkbox from an existing checkbox?  Or did you just create your own list?

0 0
replied on January 9, 2023

Jamie,

It's been a while, but I believe the process was that one forms process saved to the repository with a checkbox field being saved to a metadata field, then a workflow process would run which checked for forms saved to the repository, pulled the metadata value from each form and used that to populate a checkbox within a collection in the new form started by the workflow... 

 

So Form Process A to Repository Metadata to Workflow variable to Form Process B.  So simple answer is that yes it was from an existing checkbox, though it was stored in a few places in between steps.

Hope this helps.

 

0 0
replied on January 9, 2023

Thanks Will.  Sounds like we are doing the same thing.  I'm just struggling to get it to populate the checkboxes on the new form.  It will check the first value that is passed over but none of the rest.  What did you do to remove spaces from the list of values?

 

 

0 0
replied on January 9, 2023

Again it's been a while, but I believe I was able to use a token calculator to replace all instances of ", " (comma,space) with "," (comma) to remove the spaces.

 

2 0
replied on February 5, 2024

I just used the SUBSTITUTE() "String" formula in the Token Calculator to remove the space after the comma.

SUBSTITUTE(%(YourToken), " " , "" )

1 0

Replies

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

Sign in to reply to this post.