contact form from shortcode – changing name minimum lenght limit

Support Forums for LiveMesh Themes & Plugins Forums Fusion Theme Support contact form from shortcode – changing name minimum lenght limit

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #15585
    Apa-Slapa-sl
    Participant

    Small problem. contact form from the short code (witch is noticeable prettier that contact form 7) requires a minimum 5 chars in the name field whereas we have 2-3 chars long names. How can we change the minimum lenght limit?

    #15599
    VeenaVeena
    Moderator

    Pls modify file contact-shortcodes.php(framework/shortcodes/contact-shortcodes.php) line no:44 to

    $output .= '

    ';

    And you can change the name format string in file framework/framework.php line no:621.

    #15606
    Apa-Slapa-sl
    Participant

    Unfortunately this modification did not worked (we’ve double checked – file on our FTP servers has been uploaded after the modification 😉

    This is our changed line 44:
    $output .= '<p><label>' . esc_html__('Name *', 'mo_theme') . '</label><input type="text" name="contact_name" minlength="2" placeholder="' . esc_attr__("Name:", 'mo_theme') . '" class="text-input" required></p>';

    #15648
    VeenaVeena
    Moderator

    Instead of giving minlength=”2″ in contact-shortcodes.php pls change minlength to 2 in file js/main.js at line no:568.

    Attachments:
    #15652
    Apa-Slapa-sl
    Participant

    @phoenix: thank you, now it works.

    Last question: where can we edit theme’s copy (warning info in case of entering to short name still says “min lenght 5 chars:.

    #15657
    VeenaVeena
    Moderator

    You can change it in file framework/framework.php at line no:621.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Fusion Theme Support’ is closed to new topics and replies.