How to add phtml file content after the form content in backendHow to pick data from a form into the backend?Include custom module block within phtml file?Magento:Upload file in ajax formMagento2 - How to fill a dropdown from backend configuration [Solved]How to add field to this formCall Div content from Separate phtmlreturn phtml file content in ajax response in magento2how to call phtml file in static block?How to add content to registration form? Magento 2.2How can I manage admin form via template in Magento2?

Are these reasonable traits for someone with autism?

Crossing US border with music files I'm legally allowed to possess

How to pull out the underlying query syntax being used by dataset?

Construct a word ladder

Is it possible to play as a necromancer skeleton?

What to do when you've set the wrong ISO for your film?

Ticket to ride, 1910: What are the big cities

Simple function that simulates survey results based on sample size and probability

How to use Palladio font in text body but Computer Modern for Equations?

German equivalent of the French expression "Mais de là à ..."

How to use " shadow " in pstricks?

Defining the standard model of PA so that a space alien could understand

Why do they consider the Ori false gods?

Why do Windows registry hives appear empty?

Were pens caps holes designed to prevent death by suffocation if swallowed?

Did people go back to where they were?

Why do Ryanair allow me to book connecting itineraries through a third party, but not through their own website?

Plot twist where the antagonist wins

Is real public IP Address hidden when using a system wide proxy in Windows 10?

Looking for a soft substance that doesn't dissolve underwater

Cipher Block Chaining - How do you change the plaintext of all blocks?

At what point in European history could a government build a printing press given a basic description?

Which is the common name of Mind Flayers?

Boss wants me to falsify a report. How should I document this unethical demand?



How to add phtml file content after the form content in backend


How to pick data from a form into the backend?Include custom module block within phtml file?Magento:Upload file in ajax formMagento2 - How to fill a dropdown from backend configuration [Solved]How to add field to this formCall Div content from Separate phtmlreturn phtml file content in ajax response in magento2how to call phtml file in static block?How to add content to registration form? Magento 2.2How can I manage admin form via template in Magento2?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have added form in the backend. At the end of the form I need to include a phtml content using it's block. How can we include phtml file after the form content?










share|improve this question




























    0















    I have added form in the backend. At the end of the form I need to include a phtml content using it's block. How can we include phtml file after the form content?










    share|improve this question
























      0












      0








      0








      I have added form in the backend. At the end of the form I need to include a phtml content using it's block. How can we include phtml file after the form content?










      share|improve this question














      I have added form in the backend. At the end of the form I need to include a phtml content using it's block. How can we include phtml file after the form content?







      magento2 admin forms






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 29 '17 at 11:24









      SIBHI SSIBHI S

      1,12711536




      1,12711536




















          3 Answers
          3






          active

          oldest

          votes


















          0














          You can try following code at the end of your phtml form



          echo $this->getLayout()->createBlock("PathtoBlock")->setTemplate("Vendor_Module::your_template.phtml")->toHtml()





          share|improve this answer























          • It comes in the top of the contents...not coming inside the form tab

            – SIBHI S
            Aug 29 '17 at 11:50











          • Please post your corresponding layout xml

            – Vivek Kumar
            Aug 29 '17 at 12:11


















          0














          Add the following function to your block



          public function getFormHtml()

          $html = parent::getFormHtml();
          $html .= $this->setTemplate('Vendor_Module::your_template.phtml')->toHtml();
          return $html;



          Don't forget to create the phmtl at Vendor/Module/view/adminhtml/templates/your_template.phtml






          share|improve this answer






























            0














            Add in the layout page for customer_index_edit.xml (add in xml file for edit)



            <referenceContainer name="content">
            <block class="MagentoCustomerBlockAdminhtmlEditTabView" name="customer_edit_tab_view" template="tab/view.phtml">
            <block class="MagentoCustomerBlockAdminhtmlEditTabViewPersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>
            </block>
            <referenceContainer>



            In tab/view.phtml you call function echo $block->getChildHtml();






            share|improve this answer























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "479"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f191033%2fhow-to-add-phtml-file-content-after-the-form-content-in-backend%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              You can try following code at the end of your phtml form



              echo $this->getLayout()->createBlock("PathtoBlock")->setTemplate("Vendor_Module::your_template.phtml")->toHtml()





              share|improve this answer























              • It comes in the top of the contents...not coming inside the form tab

                – SIBHI S
                Aug 29 '17 at 11:50











              • Please post your corresponding layout xml

                – Vivek Kumar
                Aug 29 '17 at 12:11















              0














              You can try following code at the end of your phtml form



              echo $this->getLayout()->createBlock("PathtoBlock")->setTemplate("Vendor_Module::your_template.phtml")->toHtml()





              share|improve this answer























              • It comes in the top of the contents...not coming inside the form tab

                – SIBHI S
                Aug 29 '17 at 11:50











              • Please post your corresponding layout xml

                – Vivek Kumar
                Aug 29 '17 at 12:11













              0












              0








              0







              You can try following code at the end of your phtml form



              echo $this->getLayout()->createBlock("PathtoBlock")->setTemplate("Vendor_Module::your_template.phtml")->toHtml()





              share|improve this answer













              You can try following code at the end of your phtml form



              echo $this->getLayout()->createBlock("PathtoBlock")->setTemplate("Vendor_Module::your_template.phtml")->toHtml()






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Aug 29 '17 at 11:33









              Vivek KumarVivek Kumar

              2,6852731




              2,6852731












              • It comes in the top of the contents...not coming inside the form tab

                – SIBHI S
                Aug 29 '17 at 11:50











              • Please post your corresponding layout xml

                – Vivek Kumar
                Aug 29 '17 at 12:11

















              • It comes in the top of the contents...not coming inside the form tab

                – SIBHI S
                Aug 29 '17 at 11:50











              • Please post your corresponding layout xml

                – Vivek Kumar
                Aug 29 '17 at 12:11
















              It comes in the top of the contents...not coming inside the form tab

              – SIBHI S
              Aug 29 '17 at 11:50





              It comes in the top of the contents...not coming inside the form tab

              – SIBHI S
              Aug 29 '17 at 11:50













              Please post your corresponding layout xml

              – Vivek Kumar
              Aug 29 '17 at 12:11





              Please post your corresponding layout xml

              – Vivek Kumar
              Aug 29 '17 at 12:11













              0














              Add the following function to your block



              public function getFormHtml()

              $html = parent::getFormHtml();
              $html .= $this->setTemplate('Vendor_Module::your_template.phtml')->toHtml();
              return $html;



              Don't forget to create the phmtl at Vendor/Module/view/adminhtml/templates/your_template.phtml






              share|improve this answer



























                0














                Add the following function to your block



                public function getFormHtml()

                $html = parent::getFormHtml();
                $html .= $this->setTemplate('Vendor_Module::your_template.phtml')->toHtml();
                return $html;



                Don't forget to create the phmtl at Vendor/Module/view/adminhtml/templates/your_template.phtml






                share|improve this answer

























                  0












                  0








                  0







                  Add the following function to your block



                  public function getFormHtml()

                  $html = parent::getFormHtml();
                  $html .= $this->setTemplate('Vendor_Module::your_template.phtml')->toHtml();
                  return $html;



                  Don't forget to create the phmtl at Vendor/Module/view/adminhtml/templates/your_template.phtml






                  share|improve this answer













                  Add the following function to your block



                  public function getFormHtml()

                  $html = parent::getFormHtml();
                  $html .= $this->setTemplate('Vendor_Module::your_template.phtml')->toHtml();
                  return $html;



                  Don't forget to create the phmtl at Vendor/Module/view/adminhtml/templates/your_template.phtml







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 20 at 18:27









                  Ricardo SchafferRicardo Schaffer

                  112




                  112





















                      0














                      Add in the layout page for customer_index_edit.xml (add in xml file for edit)



                      <referenceContainer name="content">
                      <block class="MagentoCustomerBlockAdminhtmlEditTabView" name="customer_edit_tab_view" template="tab/view.phtml">
                      <block class="MagentoCustomerBlockAdminhtmlEditTabViewPersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>
                      </block>
                      <referenceContainer>



                      In tab/view.phtml you call function echo $block->getChildHtml();






                      share|improve this answer



























                        0














                        Add in the layout page for customer_index_edit.xml (add in xml file for edit)



                        <referenceContainer name="content">
                        <block class="MagentoCustomerBlockAdminhtmlEditTabView" name="customer_edit_tab_view" template="tab/view.phtml">
                        <block class="MagentoCustomerBlockAdminhtmlEditTabViewPersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>
                        </block>
                        <referenceContainer>



                        In tab/view.phtml you call function echo $block->getChildHtml();






                        share|improve this answer

























                          0












                          0








                          0







                          Add in the layout page for customer_index_edit.xml (add in xml file for edit)



                          <referenceContainer name="content">
                          <block class="MagentoCustomerBlockAdminhtmlEditTabView" name="customer_edit_tab_view" template="tab/view.phtml">
                          <block class="MagentoCustomerBlockAdminhtmlEditTabViewPersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>
                          </block>
                          <referenceContainer>



                          In tab/view.phtml you call function echo $block->getChildHtml();






                          share|improve this answer













                          Add in the layout page for customer_index_edit.xml (add in xml file for edit)



                          <referenceContainer name="content">
                          <block class="MagentoCustomerBlockAdminhtmlEditTabView" name="customer_edit_tab_view" template="tab/view.phtml">
                          <block class="MagentoCustomerBlockAdminhtmlEditTabViewPersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>
                          </block>
                          <referenceContainer>



                          In tab/view.phtml you call function echo $block->getChildHtml();







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered May 21 at 9:26









                          Shekhar SumanShekhar Suman

                          147115




                          147115



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Magento Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f191033%2fhow-to-add-phtml-file-content-after-the-form-content-in-backend%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                              Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                              Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form