Can i have a string field which accepts multiple values?

thiraj
Tera Contributor

Hi Team,

I want to create a form with a field where users can input different values (sort of like a array field). I tried using the "Data Structure" field type but it does not meet our requirements. Can i have a string field with can take several multiple values (maybe separated by commas).

All help is appreciated.

Thank you

1 ACCEPTED SOLUTION

Shishir Srivast
Mega Sage

Hi Thiraj,



string field accepts upto 254 characters or less, the string field will be a single-line text field, Anything 255 characters or over will appear as a multi-line text box.



I don't think there wouldn't be any issue if you save the value with comma separated.



Reference: Field types,


Let us know if you are looking something different.


View solution in original post

6 REPLIES 6

Jon Barnes
Kilo Sage

A glide list is like a reference field which selects multiple values, and it stores it as a comma-separated list of sys_ids. is that what you are looking for?


Hi Jonathan,



Thanks for the reply. I just had a look at what glide list is. It kind of does what i want it to but the issue is that it has to reference something. In my requirements I want to get the input of the user. The user should be able to input several values.


Example - server table


* server name - server 1


* server type - type 1


*where is it user -         location 1


                                                              location 2


                                                              location 3   ...........


So the above field should act like an array to get the list of the user inputs. I cannot use a list because they are not pre-defined. The user can input any number of values and any value (any location as the example)



Thank you


Shishir Srivast
Mega Sage

Hi Thiraj,



string field accepts upto 254 characters or less, the string field will be a single-line text field, Anything 255 characters or over will appear as a multi-line text box.



I don't think there wouldn't be any issue if you save the value with comma separated.



Reference: Field types,


Let us know if you are looking something different.


Hi,



Please let me know if my response was good enough to answer you query, kindly mark the response correct, if it was.