Skip to main content
Participating Frequently
October 3, 2023
Question

Comma Logic for one of many fields with same name.

  • October 3, 2023
  • 1 reply
  • 829 views

Hello there community!

I have been looking for a script that I can put into a text field that places a comma at the end of the text/ string. I found this little bit on another post: if (event.value) event.value+=","; this works 100% but I need to customize it a bit. I have 5 text fields that are identical in name that pull in information from a database but I only need that snippet of logic applied to the first instance of textbox. So, all 5 boxes will populate a client name but I only need comma logic applied to the first box. As it stands now, using just this tidbit in the first textbox produces a comma across all boxes which makes sense.   Any help or advice would be appreciated!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
October 3, 2023

You will have to rename this field and copy its value from the others, or vice versa.

Participating Frequently
October 4, 2023

Nice! Didnt think of this before. Thank you!