How to add a form in the page of a new message.


Home Forums Front End PM PRO How to add a form in the page of a new message.

This topic is: Resolved
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #39747
    Alf
    Participant

    Hello,
    There are two forms, subject and messages, in the page of a new message.
    How can I add one more form here?

    #39753
    shamim
    Keymaster
    #39775
    Alf
    Participant

    Thank you very much. I could add a form.

    I want to add the sentence for the explanation about the content of the form above the form.
    How can I do this?

    #39779
    shamim
    Keymaster
    #39813
    Alf
    Participant

    I could not add sentences.
    Could you tell me which parts are wrong?

    add_filter( ‘fep_before_form_fields’, function( $fields ){
    $fields[‘cus_fep_checkbox’] = [
    ‘where’ => ‘newmessage’,
    ‘priority’ => 22,
    ‘cb_label’ => ‘文字数を入力してください。’,
    ];
    return $fields;
    });

    #39819
    shamim
    Keymaster

    Use like following

    add_action( 'fep_before_form_fields', function( $where ){
        if( in_array( $where, [ 'newmessage', 'reply' ] ) ) {
            echo "This is your sentence";
        }
    });
    
    #39918
    Alf
    Participant

    Thank you very much.
    How can I add words on the top of a form like original forms instead of the bottom of a form?

    #39925
    shamim
    Keymaster

    It should show above form.
    If you want to show bellow form you can use fep_after_form_fields hook

    #40012
    Alf
    Participant

    My explanation was bad, but I would like to add words just above a form to explain what form it is like the original forms. About the original forms, there are words, subject and message, just above the forms. I would like to make forms like them. I attached the screenshot.

    However, if I use the code you let me know, the words appear on the very top of the forms or the bottom of the forms.

    I would appreciate it if you could help me.

    Attachments:
    You must be logged in to view attached files.
    #40021
    shamim
    Keymaster

    Can you mark the position where you want to show the words? Also what you want to show?
    Do you want to show any text field?

    #40078
    Alf
    Participant

    I want to add two forms.
    I want to add the titles to forms such as subject:* and message:*
    I want to add one form between subject and message.
    I want to add the other form under the message.

    I appreciate your time and help

    #40087
    shamim
    Keymaster

    It seems you want additional form fields.
    You can follow https://www.shamimsplugins.com/support/topic/additional-message-field/#post-20493 (Change priority, 12 is between subject and message and 17 is under message)

    Let me know.

    #40327
    Alf
    Participant

    I appreciate it.
    I could add forms now.

Viewing 13 posts - 1 through 13 (of 13 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.