More in this section

Forums / Developing with Sitefinity / Newsletter Control

Newsletter Control

2 posts, 0 answered
  1. Steven Lancaster
    Steven Lancaster avatar
    82 posts
    Registered:
    06 Nov 2009
    07 Jan 2010
    Link to this post
    I created a page and pulled over the Newsletter Control and chose which group, but it is displaying my test information from the newletter. How do I make the fields Blank? Can I edit the actual form? You can get an idea with the attachment of what I am talking about.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Jan 2010
    Link to this post
    Hello Steven Lancaster,

    Open Sitefinity/ControlTemplates/Newsletters/SubscriptionFormTemplate.ascx or open your custom template. Override OnPreRender and set the Text property of the TextBox controls to empty string.

    sample code:

    protected override void OnPreRender(EventArgs e)
    {
        base.OnPreRender(e);
     
        this.sf2_email.Text = "";
        // TODO for all other controls
         
    }

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered