I’m developing an app where users input a list of keywords into a text entry component, which triggers a scenario on Make.com for keyword research via AI. The results are then sent back to the app as a report.
The issue I’m facing is that if users format the text incorrectly—specifically, if they add newlines (by pressing Enter) instead of keeping the list comma-separated—it breaks the scenario due to the invalid JSON format caused by the newlines. This is a critical issue for the app’s functionality.
I’m looking for solutions to prevent users from submitting text with newlines in the text entry component.
Is there a way to block or filter newline characters in Glide before triggering the action?
Any guidance would be greatly appreciated!
How are you generating the JSON?
If you use either the JSON Object or JSON Template column, then you don’t have worry about it. You will always get valid JSON regardless of the input.
Thank you for your response @Darren_Murphy !
The issue doesn’t occur when data is sent from Glide to Make, but rather when the data is returned from Make to Glide via an HTTP call.
Specifically, I need the HTTP call to add a new row to the Glide database, and one of the fields in that row contains the seed keywords. However, if the text contains newlines, the HTTP call results in a “bad request” error.