I am building a form where the user does the following:
- Enter a base URL
- Chooses options from combo boxes and enters values in text boxes
- All of this gets entered into a datasource
Goal
Assemble these values into a valid URL.
Ex. www.website.com?utm_campaign=field1&utm_source=field2&utm_somethin=field3
Now, at the moment I have each individual field getting entered into its own column in the data source. I do not assemble the URL and enter it into its own column although I am considering this. I do not account for spaces in the field values either. For example, utm_campaign might be something like "Fall Sale Event". What gets entered into the data source is "Fall Sale Event". The problem is that is you try and assemble a URL you have spaces. What should be there in place of the spaces is %20. How would I handle these spaces? Do I enter the %20 into the data being entered into each column of the data source? Do I assemble the URL and add the %20 at that point and then write the assembled URL to the data source? Or do I assemble the URL in a gallery and deal with the spaces there? And, of course, how do I handle swapping out the spaces?
Ultimately, this would go for any encoding that needs to be done. Not just spaces.