ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Form help

August 24, 2012 3:02pm

Subscribe [3]
  • #1 / Aug 24, 2012 3:02pm

    Brian_az

    36 posts

    Hello,

    I am trying to use a contact form and pre-populate using the value= field. The following form below sends all the data properly but the value field is not showing. 

    Can anyone advise on how to make the value field work?

    Thanks!

    <pre><code>

    <!—Contact form—>
    {exp✉️contact_form user_recipients="false" recipients="myemail" charset="utf-8" return="http://domain.com/domains"}
    <label for=“from”>Email Address:</label>

    <input type=“text” id=“from” name=“from” size=“40” maxlength=“35” value=”” /></p>
    <input type=“hidden” id=“subject” name=“subject” size=“40” value=”{title}” />
    <label for=“message”>Message:</label>


    <textarea id=“message” name=“message[]” rows=“10” cols=“40” value=“I would like make an offer on {title} of:“t” ></textarea>

    Please enter the word you see in the image below:

    {captcha}

    <input type=“text” name=“captcha” value=”” maxlength=“20” /></p>

    <input name=“submit” type=‘submit’ value=‘Send’ /></p>

    {/exp✉️contact_form}
    <!—/Contact form—> 

    <pre><code>

  • #2 / Aug 27, 2012 9:40am

    Ralph

    78 posts

    In textareas you put the value between the tags.

    <textarea id=“message” name=“message[]” rows=“10” cols=“40”>
    I would like make an offer on {title} of:“t”
    </textarea>
  • #3 / Aug 27, 2012 9:55am

    Kyle Cotter

    730 posts

    Hi Brian,

    As Patrick points out, you need to put your content in between the textarea tags.

    Check out the sample contact form from the user guide for a working example of how this tag operates.

    Let me know if you have any questions.

    Thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases