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

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

                              Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                              Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?