Title and Message maximum text length


Home Forums Front End PM PRO Title and Message maximum text length

This topic is: Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #40630
    peri2616
    Participant

    By default, Title and Message maximum text length seems to be unlimited. I tried Title and Message text length more 1,000 characters and message successfully sent.

    I added the following code in functions.php in child theme.

    add_filter( 'fep_form_fields', function( $fields ) {
        $fields['message_title']['maxlength'] = 50;
        $fields['message_content']['maxlength'] = 200;
        return $fields;
    });
    

    I tried Title and Message text length more 1,000 characters and message successfully sent.

    Please advise how to set Title and Message maximum text length.

    Thanks.

    #40655
    Shamim Hasan
    Keymaster

    By default title and message max length is 100 and 5000.
    Also your code seems correct to change that. Can you check if you have any more code which change this value?

    #40657
    peri2616
    Participant

    Placed add_filter( ‘fep_form_fields’, function( $fields ) one time only in functions.php

    #40675
    Shamim Hasan
    Keymaster

    Can you do a conflict check (deactivate all plugins and change theme to one of default theme, then activate one by one and test)?
    Can you change some code in the plugin if i instruct you? Also create a test account and send to me using https://www.shamimsplugins.com/sensitive-information/ so that i can test.

    #41609
    peri2616
    Participant

    After testing further, the code works fine.
    Thanks for your help.

Viewing 5 posts - 1 through 5 (of 5 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.