Ok part 2 time.
I've gotten the translate function to replace the parts of the string that I want, works great thanks! However, I'm having trouble figuring out the formula to perform the translate on a multiple selection list box.
Currently, I'm using this formula to keep track of ALL selected options in the list box: eval(eval(field1, 'concat(., ";")'), "..") This formula produces: Option-1; Option-2; Option-3. Now what I want to do is change the formula a bit so that it incorporates the TRANSLATE function to remove the text ("Option-" in this case), and sum the remaining numerical values (1, 2, 3) so that "6" is stored in a field (the field that holds the formula as default value).
Thanks for your help again!
JenniferLindsay:Hi supermanKelz,
You can extract the text only by removing the numbers with the translate function:
translate(myUserInput,"0123456789", "")
And you can extract the numbers only by removing the letters and the dash with another call to the translate function:
translate(myUserInput, "ABCDEFGHIJKLMNOPQRSTUVWYXZabcdefghijklmnopqrstuvwyxz-","")