1

We are using Web Form for Marketers in Sitecore 7.2 with MVC. We are using one field of the form to show thank you message.

<p> Thanks for Submission </p> <p> You have successfully subscribed to our news letter</p>

But it shows a message like follows

<div class="wfm-thank-you"> <p>Thanks For Submission</p> <p>You have successfully subscribed to our newsletter</p> <p>

It shows HTML tags with a message.

Anu suggestion will be helpful.

7

I already had the same issue and following how you I solved it:

Navigate to the following file path:

..\Website\Views\Form\EditorTemplates\FormModel.cshtml

Update the following lines:

if (Model.SuccessSubmit)
{
    @Html.Raw(!string.IsNullOrEmpty(Model.SuccessMessage) ? Model.SuccessMessage : Translate.Text("Default success message."))
    //@Html.Encode(!string.IsNullOrEmpty(Model.SuccessMessage) ? Model.SuccessMessage : Translate.Text("Default success message."))
    return;
}
1
  • 1
    Nice catch @Mohammed :) – Yogesh Sharma Jan 17 '17 at 12:09
2

WFFM does not provide this functionality by default in this version. It allows outputting only plain text. I would suggest to use 'Redirect' success form action.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.