Text input field creates array?

(Brian) #1

I am using the text input field to get the “from” address in my app

section("Departing From:"){
	input "from", "text", title: "Address?"

When I go to do a URLencode, it fails because it thinks from is an Array. Why is the text field being treated as an array and how can I convert it to a string to use URLencode?

(Patrick Stuart [@pstuart]) #2

from is typically a reserved word. Try a different name maybe? “departFrom”, “text”

(Brian) #3

Thanks, ill give it a try once I can get my code up & running again…its suddenly stuck at

grails.validation.ValidationException: Validation Error(s) occurred during save():
- Field error in object 'physicalgraph.device.Device' on field 'name': rejected value [null]; codes