Using Join to concatenate Repeat-group field and assign to case property:

on my registration form I have a question list and a repeat group that I
wish to assign a concatenated value of the repeated text field…is
this possible?

I have a question list group followed by a repeat group that is a notes
sections…basically a text field.

I want to use the join function to do the following.

join("

", #form/Task_Details/memo)

and use this to give me a line separated text field which i can assign to
my case property…

I have a hidden field right after the repeat group that uses the join as
the default value…this should work…?

so if my first repeat is “My notes” and my second repeat is "More Notes"
the hidden field should show me

My notes
More Notes

Any ideas?

Hi John,

You can definitely use something like

join( , /path/to/repeat/text_value)

to create a newline separated set of “text_value” elements from the
repeat (
is a way to insert a line break)

It sounds like you’d want to do two joins, one to join the repeated
elements, one to join the free text input that isn’t in a repeat?

-Clayton

··· On Wed, May 31, 2017 at 11:04 AM, John Harper < john.harper@grableservices.com> wrote:

on my registration form I have a question list and a repeat group that I
wish to assign a concatenated value of the repeated text field…is
this possible?

I have a question list group followed by a repeat group that is a notes
sections…basically a text field.

I want to use the join function to do the following.

join("

", #form/Task_Details/memo)

and use this to give me a line separated text field which i can assign to
my case property…

I have a hidden field right after the repeat group that uses the join as
the default value…this should work…?

so if my first repeat is “My notes” and my second repeat is "More Notes"
the hidden field should show me

My notes
More Notes

Any ideas?


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.