Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Millie

    (@aeime)

    the post didn’t show the code. I tried to enter “br” between each item, to have them appear on new lines, but this didn’t work.

    I fixed this for the next version.
    Instead of br, use \n for each line break

    Only works for default text of textarea extra fields

    edit:
    si-contact-form-ex-fields.php

    change line 152-153 from:

    if($si_contact_opt['ex_field'.$i.'_default_text'] != '' && ${'ex_field'.$i} == '')
    $string .=  esc_attr($si_contact_opt['ex_field'.$i.'_default_text']);

    to

    if($si_contact_opt['ex_field'.$i.'_default_text'] != '' && ${'ex_field'.$i} == '')
    $string .=  esc_attr(str_replace('\n', "\n", $si_contact_opt['ex_field'.$i.'_default_text']));

    Thread Starter Millie

    (@aeime)

    thanks Mike. For some reason wordpress times out every time I try to update the php file. I’ll keep trying though ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to format default text in textarea field’ is closed to new replies.