How about passing data to a textarea field that needs new line character

  • Profile Image
    nationwidedm
    Asked on July 11, 2012 at 03:11 AM
  • Profile Image
    jonathan
    Answered on July 11, 2012 at 06:11 AM

    Hi,

    Can you please provide us more details on what you want to achieve on the form?

    You can pre-populate a text area using the method explained in the guide... but what do you mean by 'needs new line character...'

    Will await your response.

    Thanks.

  • Profile Image
    nationwidedm
    Answered on July 11, 2012 at 11:43 AM

    I'd like the text within the textarea box to be separated by newline characters

     

    I know that I can space the data like this ?fieldname=item1%20item2%20item3

     

    but that would just put them all on the same line, I'd like the textarea to be prefilled and looking like this:

     

    item1

    item2

    item3

     

    (multiline textarea box)

  • Profile Image
    NeilVicente
    Answered on July 11, 2012 at 12:02 PM

    @nationwidedm

    Use %0A to add a line break to the value you want to prepopulate a field with.

    For more URL encoded characters, please visit the link below

    http://www.degraeve.com/reference/urlencoding.php