WBCE Home | WBCE Hilfe | WBCE Addon Repository | Impressum | Datenschutz

WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 15.07.2019 10:29:59

berrysad
Member

Miniform is not sending out form

Hello there,

When I set up my form it looks fine on the web site but when I click the submit link it tells me that the message body has not been filled out.  I have no message field.  Here is what my form looks like:
<div class="miniform">
    <div class="{MESSAGE_CLASS}">{STATUSMESSAGE}</div>
    <div class="{FORM_CLASS}">
        <small><h1><center>First Appointment and Contact Form</center></h1>Items marked with <span><span>*</span></span> are required</small>
        <br/>
        <form name="form_{SECTION_ID}" id="form_{SECTION_ID}" method="post" action="{URL}">
            <input name="miniform" type="hidden" value="{SECTION_ID}"/>
            <input name="header" type="hidden" value="Berry's Advocating First Appointment and Contact Form"/>
            <input name="mf_timestamp" type="hidden" value="{DATE} {TIME}"/>
            <div  class="full">
                <label for="fname"><span>Your first Name Please: <span>*</span></span>
                    <input placeholder="Stephan" required="required" class="{FNAME_ERROR}" type="text" id="fname" name="mf_r_fname" value="{FNAME}" />
                </label>
            </div>
            <div  class="full">
                <label for="lname"><span>Your Last Name please: <span>*</span></span>
                    <input placeholder="Jacobson" required="required" class="{LNAME_ERROR}" type="text" id="lname" name="mf_r_lname" value="{LNAME}" />
                </label>
            </div>
            <div  class="full">
                <label for="dob"><span>Date of Birth (Enter 2 digit month, 2 digit day, 4 digit year): <span>*</span></span>
                    <input placeholder="02/08/1995" required="required" class="{DOB_ERROR}" type="text" id="dob" name="mf_r_dob" value="{DOB}" />
                </label>
            </div>
            <div  class="full">
                <label for="sa1"><span>Please enter your street address: <span>*</span></span>
                    <input placeholder="2222 Boogie Boogie Avenue." required="required" class="{SA1_ERROR}" type="text" id="sa1" name="mf_r_sa1" value="{SA1}" />
                </label>
            </div>
            <div  class="full">
                <label for="sa2"><span>Please enter house or apartment number: <span>*</span></span>
                    <input placeholder="Apt. 34" required="required" class="{SA2_ERROR}" type="text" id="sa2" name="mf_r_sa2" value="{SA2}" />
                </label>
            </div>
            <div  class="full">
                <label for="city"><span>Please enter your city: <span>*</span></span>
                    <input placeholder="Anchorage" required="required" class="{CITY_ERROR}" type="text" id="city" name="mf_r_city" value="{CITY}" />
                </label>
            </div>
            <div  class="full">
                <label for="montana"><span>Please choose your state: <span>*</span></span>
                    <select required="required" class="{MONTANA_ERROR}" id="montana" name="mf_r_montana">
                        <option {MONTANA_SELECTED_ALABAMA+} value="Alabama+">Alabama+</option>
                        <option {MONTANA_SELECTED_ALASKA+} value="Alaska+">Alaska+</option>
                        <option {MONTANA_SELECTED_ARIZONA+} value="Arizona+">Arizona+</option>
                        <option {MONTANA_SELECTED_ARKANSAS+} value="Arkansas+">Arkansas+</option>
                        <option {MONTANA_SELECTED_CALIFORNIA+} value="California+">California+</option>
                        <option {MONTANA_SELECTED_COLORADO+} value="Colorado+">Colorado+</option>
                        <option {MONTANA_SELECTED_CONNECTICUT+} value="Connecticut+">Connecticut+</option>
                        <option {MONTANA_SELECTED_DELAWARE+} value="Delaware+">Delaware+</option>
                        <option {MONTANA_SELECTED_DISTRICT_OF_COLUMBIA+} value="District of Columbia+">District of Columbia+</option>
                        <option {MONTANA_SELECTED_FLORIDA+} value="Florida+">Florida+</option>
                        <option {MONTANA_SELECTED_GEORGIA+} value="Georgia+">Georgia+</option>
                        <option {MONTANA_SELECTED_HAWAII+} value="Hawaii+">Hawaii+</option>
                        <option {MONTANA_SELECTED_IDAHO+} value="Idaho+">Idaho+</option>
                        <option {MONTANA_SELECTED_ILLINOIS+} value="Illinois+">Illinois+</option>
                        <option {MONTANA_SELECTED_INDIANA+} value="Indiana+">Indiana+</option>
                        <option {MONTANA_SELECTED_IOWA+} value="Iowa+">Iowa+</option>
                        <option {MONTANA_SELECTED_KANSAS+} value="Kansas+">Kansas+</option>
                        <option {MONTANA_SELECTED_KENTUCKY+} value="Kentucky+">Kentucky+</option>
                        <option {MONTANA_SELECTED_LOUISIANA+} value="Louisiana+">Louisiana+</option>
                        <option {MONTANA_SELECTED_MAINE+} value="Maine+">Maine+</option>
                        <option {MONTANA_SELECTED_MARYLAND+} value="Maryland+">Maryland+</option>
                        <option {MONTANA_SELECTED_MASSACHUSETTS+} value="Massachusetts+">Massachusetts+</option>
                        <option {MONTANA_SELECTED_MICHIGAN+} value="Michigan+">Michigan+</option>
                        <option {MONTANA_SELECTED_MINNESOTA+} value="Minnesota+">Minnesota+</option>
                        <option {MONTANA_SELECTED_MISSISSIPPI+} value="Mississippi+">Mississippi+</option>
                        <option {MONTANA_SELECTED_MISSOURI+} value="Missouri+">Missouri+</option>
                        <option {MONTANA_SELECTED_MONTANA+} value="Montana+">Montana+</option>
                        <option {MONTANA_SELECTED_NEBRASKA+} value="Nebraska+">Nebraska+</option>
                        <option {MONTANA_SELECTED_NEVADA+} value="Nevada+">Nevada+</option>
                        <option {MONTANA_SELECTED_NEW_HAMPSHIRE+} value="New Hampshire+">New Hampshire+</option>
                        <option {MONTANA_SELECTED_NEW_JERSEY+} value="New Jersey+">New Jersey+</option>
                        <option {MONTANA_SELECTED_NEW_MEXICO+} value="New Mexico+">New Mexico+</option>
                        <option {MONTANA_SELECTED_NEW_YORK+} value="New York+">New York+</option>
                        <option {MONTANA_SELECTED_NORTH_CAROLINA+} value="North Carolina+">North Carolina+</option>
                        <option {MONTANA_SELECTED_NORTH_DAKOTA+} value="North Dakota+">North Dakota+</option>
                        <option {MONTANA_SELECTED_OHIO+} value="Ohio+">Ohio+</option>
                        <option {MONTANA_SELECTED_OKLAHOMA+} value="Oklahoma+">Oklahoma+</option>
                        <option {MONTANA_SELECTED_OREGON+} value="Oregon+">Oregon+</option>
                        <option {MONTANA_SELECTED_PENNSYLVANIA+} value="Pennsylvania+">Pennsylvania+</option>
                        <option {MONTANA_SELECTED_RHODE_ISLAND+} value="Rhode Island+">Rhode Island+</option>
                        <option {MONTANA_SELECTED_SOUTH_CAROLINA+} value="South Carolina+">South Carolina+</option>
                        <option {MONTANA_SELECTED_SOUTH_DAKOTA+} value="South Dakota+">South Dakota+</option>
                        <option {MONTANA_SELECTED_TENNESSEE+} value="Tennessee+">Tennessee+</option>
                        <option {MONTANA_SELECTED_TEXAS+} value="Texas+">Texas+</option>
                        <option {MONTANA_SELECTED_UTAH+} value="Utah+">Utah+</option>
                        <option {MONTANA_SELECTED_VERMONT+} value="Vermont+">Vermont+</option>
                        <option {MONTANA_SELECTED_VIRGINIA+} value="Virginia+">Virginia+</option>
                        <option {MONTANA_SELECTED_WASHINGTON+} value="Washington+">Washington+</option>
                        <option {MONTANA_SELECTED_WEST_VIRGINIA+} value="West Virginia+">West Virginia+</option>
                        <option {MONTANA_SELECTED_WISCONSIN+} value="Wisconsin+">Wisconsin+</option>
                        <option {MONTANA_SELECTED_WYOMING} value="Wyoming">Wyoming</option>
                    </select>
                </label>
            </div>
            <div  class="full">
                <label for="country"><span>Please enter your country (No abbreviations): <span>*</span></span>
                    <input placeholder="England" required="required" class="{COUNTRY_ERROR}" type="text" id="country" name="mf_r_country" value="{COUNTRY}" />
                </label>
            </div>
            <div  class="full">
                <label for="zc"><span>Your zip code or country code please: <span>*</span></span>
                    <input placeholder="59080" required="required" class="{ZC_ERROR}" type="text" id="zc" name="mf_r_zc" value="{ZC}" />
                </label>
            </div>
            <div  class="full">
                <label for="tp"><span>Please enter your full telephone number here: <span>*</span></span>
                    <input placeholder="406-875-5577" required="required" class="{TP_ERROR}" type="text" id="tp" name="mf_r_tp" value="{TP}" />
                </label>
            </div>
            <div  class="full">
                <label for="email"><span>May we have your email address please? <span>*</span></span>
                    <input placeholder="foo@foobar.com" required="required" class="{EMAIL_ERROR}" type="text" id="email" name="mf_r_email" value="{EMAIL}" />
                </label>
            </div>
            <div  class="full">
                <label for="yes"><span>Would you like to have access to the health portal? (If not, we can contact you by secure email.) <span>*</span></span>
                    <div class="grouping {YES_ERROR}">
                        <input required="required" type="radio" id="i-yes1" {YES_YES} name="mf_r_yes" value="Yes" /><label for="i-yes1">Yes</label><br>
                        <input required="required" type="radio" id="i-yes2" {YES_NO} name="mf_r_yes" value="No" /><label for="i-yes2">No</label>
                    </div>
                </label>
            </div>
            <div  class="full">
                <label for="formats"><span>WQhat form is most suitable for you?</span>
                    <select class="{FORMATS_ERROR}" id="formats" name="mf_formats">
                        <option {FORMATS_SELECTED_BRAILLE_FILE+} value="Braille file+">Braille file+</option>
                        <option {FORMATS_SELECTED_AUDIO_FILE+} value="Audio File+">Audio File+</option>
                        <option {FORMATS_SELECTED_LARGE_PRINT} value="Large Print">Large Print</option>
                    </select>
                </label>
            </div>
            <div class="full">
                <button class="submit" name="Submit" type="submit">Submit to Berrys Advocating!</button>
            </div>
        </form>
    </div>
</div>

Thank you for the help.

Offline

#2 15.07.2019 10:58:15

florian
Administrator

Re: Miniform is not sending out form

Hi,
I had a short look at the form. It seems that something has gone wrong when copying/pasting the form from the form generator. In the template file are invisible characters, e.g. spaces or tabs are turned into a sign which the browsers do not know, so the opening div tags are broken and the page is stuffed with  <?> (question mark signs).

I have copied the form template above into an empty file and saved it as form_EN_FirstAppointment.htt (it's attached to this post), which is displayed properly and works well. So try to copy this file into your /modules/miniform/templates directory and select the form "EN FirstAppointment" in the backend.

About the error message, when testing to send the form on your website, I see the message "You must provide at least one recipient email address." - This might be caused by the charset issue, but it's also possible that there is no recipient given - please check if you have filled the email reciever field.

Offline

Board footer

Powered by FluxBB

up