Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Custom Profile Property Multi-line text breaks the page when it contains CRLFCustom Profile Property Multi-line text breaks the page when it contains CRLF
Previous
 
Next
New Post
5/6/2016 5:32 PM
 

I have searched the forums an internet to no avail. This is on DNN7.

 I have created a new Profile Property and selected the Data Type "multi-line text". The intention is that the user would essentially be able to enter a list. Thus he would hit "Enter" at the end of each line. This all goes fine and the data is saved correctly. However, when this data is retrieved to display on the profile page, it causes an error an stops the page from loading. The reason the page breaks is obvious from this line of code:

self['OtherMods'] = ko.observable("test
test1
test2");

The CRLF's are returned from the DB and we know that javascript does not like that. The error is "unterminated statement".  I can circumvent this by putting"<br>" tags in place of the CRLF's and display the results as an html binding in knockout.js but I can't depend on members to do this, even with explanation.

I have written JS code that would take care of this but there is nowhere to insert the code since creating and updating profiles is a control rather than a module.

Any help or guidance would be greatly appreciated,

Brian

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Custom Profile Property Multi-line text breaks the page when it contains CRLFCustom Profile Property Multi-line text breaks the page when it contains CRLF


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out