Im trying set a way to create tags in a form based in a Input Field.
I have a form that is used to create campaings, one of the fields of this form is a input field, I would like to insert distinct texts separated by commas (,), and after click a button, create those words as separated tags in my app data.
A part of it in the end of the form I have a button to create the campaing, I also need to save all the info of the form, including the tags that was created in the app data in the data type campaings.
I thinking in something like that, but if someone have any other better way to do it, Im full open to hear it.
To confirm your intended goal here:
You want to allow someone filling out a form to input multiple tags as a string of text into an input field, each separated by commas. For example: âmarketing, email, growthâ.
When the form is submitted via a button, those tags should be: 1) split into individual text values, that are 2) each saved into a list (likely a field like âtagsâ on a âcampaignâ data type object)
If thatâs the case, this is my suggestion:
- Input setup
- Use a standard input field for the tag value of type = input.
- Workflow on button click. When clicking the appropriate button:
- Use the :split by operator on the input fieldâs value to split by a comma â,â
- This turns the string into a list of text values
- In the object you create, set the Tags field (must be type list of texts) to: inputâs value: split by â,â. Follow up with trimmed to remove any trailing spaces.
1 Like