WordPress.org

Forums

Contact Form 7
[resolved] Editing "default value" formatting (8 posts)

  1. Kesava
    Member
    Posted 1 year ago #

    I have a text area set up with a default value. However I want to have multiple paragraphs in that "default value". No matter what I try, I don't think that any formatting there will help. I think I need to edit the plugin files so that line breaks will be allowed/added somehow in the default value section.

    My aim is that the form will load and in the message area will be a few paragraphs of text. Until I can fix this, those few paragraphs are all bunched together and I can't put linebreaks in with any non breaking space code that I can think of.

    Any help will be greatly appreciated.

    Thanks

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    You mean this?

    [textarea your-message]
    default value for a textarea
    can be multi-line
    like this
    [/textarea]
  3. Kesava
    Member
    Posted 1 year ago #

    Not quite. I want to have multiple paragraphs. Such as:

    [textarea your-message]
    default value for a textarea
    can have paragraphs
    
    so it needs to have a line break
    in order to separate the lines
    
    then i can format my paragraphs
    [/textarea]
  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Ok. It should be fixed in the next release.

  5. Kesava
    Member
    Posted 1 year ago #

    Great :)

    Any time line for that?

  6. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Next month? Maybe.

  7. weberteam
    Member
    Posted 11 months ago #

    I've tried to make it work this way:

    [textarea your-message]
    Line one:
    Line two:
    Line three:
    Line four:
    [/textarea]

    but it show up out of textarea, actually below it.

  8. Mohammad Sabbagh
    Member
    Posted 10 months ago #

    try this one

    [textarea your-message "
    default value for a textarea
    can have paragraphs
    \n\n
    so it needs to have a line break
    in order to separate the lines
    \n\n
    then i can format my paragraphs
    "]

    the problem you cant hide the ""
    but maybe there is someway to hide them

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic