Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rui Novais 1 post 71 karma points
    Oct 27, 2016 @ 11:10
    Rui Novais
    0

    My textarea does not appear !! Contact form using macro

    Hi,

    i am bulding a contact form but my textarea does not appear on the frontend. It appears on the RTE but is missing when i press the source code button on the RTE.

        @using (Html.BeginUmbracoForm("Submit", "ContactForm"))
                  {
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.TextBoxFor(m => m.Name, new { id = "Name", @class="form-control", @placeholder="Seu Nome *" })
                                    <p class="help-block text-danger"></p>
                                </div>
                                <div class="form-group">
    
                                    @Html.TextBoxFor(m => m.Email, new { id = "Email", @class="form-control", @placeholder="Seu Email *" })
                                    <p class="help-block text-danger"></p>
                                </div>
                                <div class="form-group">
                                    @Html.TextBoxFor(m => m.Telefone, new { id = "Telefone", @class="form-control", @placeholder="Seu Telefone *" })
                                    <p class="help-block text-danger"></p>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    @Html.TextAreaFor(m => m.Message,new { @cols="50", @rows="10", @class="form-control",@placeholder="Sua mensagem*"})
                                    <p class="help-block text-danger"></p>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                            <div class="col-lg-12 text-center">
                                <div id="success"></div>
                                <input type="submit" name="Submit" value="Submit" class="btn btn-xl">
                            </div>
                        </div>
                  }
    

    Thanks.

    Best Regards,

    Rui

    RTE content front end

  • Claushingebjerg 939 posts 2574 karma points
    Oct 27, 2016 @ 14:51
    Claushingebjerg
    0

    It looks like you placed the form in the RTE as a macro. Macros aren't directly editable in the RTE. You should edit it where the source of the macro is located...

Please Sign in or register to post replies

Write your reply to:

Draft