Rich HTML Form Labels
Our client has a website running Sitefinity 6.3.5000.0 SE. We're having a problem with form labels.
Our client regularly creates their own forms. A few of these have been a "choose your favourite book from the list" type of form. When they create these, they use the format <Book Title> by <Author Name> and they would like the book title to be italicized.
They've been able to do this successfully, by creating a form, adding a "Multiple Choice" widget and using labels in the format "<i>A Book</i> by Some Guy". When they throw the form on a page and publish it, it renders with the appropriate radio buttons and the book names are indeed italicized.
The problem appears when the form is submitted. If any choice is selected, a server error is thrown reading: "A potentially dangerous Request.Form value was detected from the client". This is because the value of the label of the choice they made is being submitted and it contains html, which is dangerous.
Is there any easy (or difficult) way to get around this?
Hi Raymond,
I have tried to reproduce this on 6.3 5000, but the form submits OK with no errors. I have recorded a short video, so please find it attached to this reply and let me know if I am missing something.
Regards,
Pavel Benov
Telerik