• alansod

    (@alansod)


    Hello everybody,
    Thank you for reading my question.
    I have a contactform7 on my website and I use shortcode to get the submitted form to see on the same page as the contacform is.
    But the submitted information is show like for example: green, red, blue, black.
    I want it to show as:
    Green
    Red
    Blue
    Black

    Doe anybody know how I can do this?

    kind regards Alan

    • This topic was modified 4 years ago by alansod.
    • This topic was modified 4 years ago by alansod.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    You can do it with this technique: Customizing mail-tag replacement

    Thread Starter alansod

    (@alansod)

    Thank you very much Takayuki.
    I’m nof very good with coding can you help me out with the code to use?

    This is an example in the link you gave me:

    function( $replaced, $submitted, $html, $mail_tag ) {
        if ( is_numeric( $submitted ) ) {
          $replaced = number_format( $submitted );
        }
     
        return $replaced;
      },
     
      10, 4
    );

    This is an example for:
    When “1234567890” is the user input you will see “1,234,567,890”

    How to make the code work in the way I want it?

    Thanks Alan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘new line in data of submitted form instead of commas’ is closed to new replies.