Hi Hilary,
I am wondering if you can help me. I've seen you giving great answers to a number of people on here.
I'm using InfoPath 2010 and posting to a SharePoint list. I've tried following this thread, but am not able to get the formulas to work. Also, I don't need the HTML formatting that Nino needed. What I want is the selected Field Offices from a multiple-selection list box, to be concatenated together with index numbers between them, so that I can easily pull them out into separate fields, so that I can do something with them in a SharePoint Designer workflow later on. Basically I want something like this:
Colorado Field Office1Kansas Field Office2Nebraska Field Office3
I am able to successfully run a double eval on my Field Office values and put commas between the values using:
eval(eval(Value, 'concat(., ", ")'), "..")
I am also able to successfully count the number of field offices selected using:
count(Value[. != ""])
But when I try to put these together in the way that seems to make sense:
eval(eval(Value, 'concat(., count(Value[. != ""]))'), "..")
I get a message that I have errors in my formula. I've tried this many ways, and can't get it to work.
eval(eval(Value, 'concat(., "count(Value[. != ""])")'), "..")
eval(eval(Value, 'concat(Value, count(Value[. != ""]))'), "..")
and everything else I can think of.
Any thoughts?
Many thanks for any help.
Lara