I want to collect a list of names using the format:
LastName, FirstName MiddleInitial
The comma is essential. I created a validation rule self.Contains(",") but it is compiling with errors.
Also, I would like to extract the text after the comma and use it in questions instead of using %rostertitle%. Can this be done? I assume that it will involve some variation of string.Substring(string.IndexOf(",") + 2) but I’m not sure.
With some validation. Note that it is artificial. The program will assume that the entered name is the first name if no comma is specified, but will indicate that as an error: