• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

vvupload.pgm

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vvupload.pgm

    I'm having an issue I've not come across before. I use vvupload.pgm successfully all the time. In this particular case, I have a form with a field of xtype: 'textareafield'.

    The issue is not really with vvupload ( I don't think ), it's with how to deal with embedded returns within the textareafield data when the user hits return to make a new line. For example,

    HTML Code:
    notes: "blahblahblah\n123123\n456456\n"
    It appears the return code is the \n. So the challenge is, how do I remove those returns and make the field one long string for output to my file field.

    When vvupload completes, then of course my processing takes over using vv_In() with the sid to get the parms from the form.

    What I end up with is the field data truncated at the first \n.

    Thoughts?


  • #2
    It appears this did the trick well enough
    HTML Code:
    notes.replace(/(?:\r\n|\r|\n)/g, '--'),

    Comment

    Working...
    X