If the string will be of finite length , 8 characters as you have shared or something similar or can it be a long text of any length such as 50 or 100s of characters
Where you plan to use this list, meaning which part of the app, a column in each row or a slice expression, etc.
Are you looking to have the elements in double quotes “1” , “2” etc. the way you have shown or 1, 2 will do? AppSheet list of text elements has elements without double quotes such as LIST(a, b, c, 1, 2, 3, 4)
We are not able to predict the length of the text user inputs, so only looping actions should be option to dynamially generate the list out of the text (of any length).
That is nice @Koichi_Tsuji . Yes , you are correct. if the length is infinite some other approach like looping actions is required. That is why , had requested @Joseph_Seddik to share the details. depending on his reply most appropriate could be suggested.
Thanks my friends.
The purpose is to validate user input of arbitrary text with unknown length, as in Valid If field.
I needed a way to execute the matching immediately. The looping action is really fun ? and looks very nice. I have a simpler solution that is to call the js Split() function in the sheet. Both solutions however would require a form save to function; while I was looking for a way to perform this validation without needing to save the form.
I opened a feature request to have AppSheet’s SPLIT() command functioning as js (and other languages’) Split(); that is when you pass an empty string as the delimiter argument, a list of single-character elements will be generated.
Please have a look and vote it up if you think it will be useful to your apps. Thank you!
Yes, for example matching for the presence of non-alphanumeric characters. But not only that; the ability to combine text commands and list commands on the string would allow you to write expressions that achieve some of the lacking RegExp functionalities.
I usually resort to js in my spreadsheet for complex pattern matchings that I cannot achieve with AppSheet. It functions well, but requires a form save. If I need to do such pattern matching without form save, I have no way to do that.