Home › Forums › Front End PM PRO › How to add a form in the page of a new message.
- This topic has 12 replies, 2 voices, and was last updated 5 years, 4 months ago by Alf.
- AuthorPosts
- July 28, 2020 at 5:16 pm #39747AlfParticipant
Hello,
There are two forms, subject and messages, in the page of a new message.
How can I add one more form here?July 28, 2020 at 9:35 pm #39753Shamim HasanKeymasterJuly 29, 2020 at 9:44 am #39775AlfParticipantThank 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?July 29, 2020 at 11:05 am #39779Shamim HasanKeymasterYou can follow this https://sp-test1.arogga.co/support/topic/need-to-add-text-above-reply-box/#post-12342
Let me know.July 29, 2020 at 3:06 pm #39813AlfParticipantI 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;
});July 29, 2020 at 6:45 pm #39819Shamim HasanKeymasterUse like following
add_action( 'fep_before_form_fields', function( $where ){ if( in_array( $where, [ 'newmessage', 'reply' ] ) ) { echo "This is your sentence"; } });August 3, 2020 at 3:07 am #39918AlfParticipantThank you very much.
How can I add words on the top of a form like original forms instead of the bottom of a form?August 3, 2020 at 8:43 am #39925Shamim HasanKeymasterIt should show above form.
If you want to show bellow form you can usefep_after_form_fieldshookAugust 4, 2020 at 3:32 pm #40012AlfParticipantMy 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.August 4, 2020 at 6:58 pm #40021Shamim HasanKeymasterCan 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?August 6, 2020 at 1:37 pm #40078AlfParticipantI 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
August 6, 2020 at 10:53 pm #40087Shamim HasanKeymasterIt seems you want additional form fields.
You can follow https://sp-test1.arogga.co/support/topic/additional-message-field/#post-20493 (Change priority, 12 is between subject and message and 17 is under message)Let me know.
August 15, 2020 at 3:40 pm #40327AlfParticipantI appreciate it.
I could add forms now. - AuthorPosts
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.