•  · 4 friends

New forms


Hello,
Need help how i can fill up a new contact form and put it on a new page

0 0 0 0 0 0
  • 117
Replies (7)
  • Do you mean creating a page and adding a contact for on the new page?

    0 0 0 0 0 0
    • 0 0 0 0 0 0
      • image_transcoder.php?o=bx_froala_image&h=2687&dpx=1&t=1577143310

        0 0 0 0 0 0

        • I made the form as a contact and want to put it on one page
          
          
          0 0 0 0 0 0
          • Hello vijuga !

            As the forms can send and process data then better to work with them according to this manual https://github.com/unaio/una/wiki/Dev-Forms  and start to create it within the new module.

            0 0 0 0 0 0
            • Okay thank you very much.
              How can you put that form on the page

              0 0 0 0 0 0
              • On the mentioned page you may find the examples of usage like:

                bx_import('BxDolForm');
                $oForm = BxDolForm::getObjectInstance('sample_form_objects', 'sample_form_objects_add'); // get form instance for specified form object and display
                if (!$oForm)
                die('"sample_form_objects_add" form object or "sample_form_objects_add" display is not defined');
                $oForm->initChecker(); // init form checker witout any data - adding new record
                if ($oForm->isSubmittedAndValid())
                echo 'inserted id: ' . $oForm->insert (); // add new record to the database
                echo $oForm->getCode();

                this code or similar should be inserted into your page' block function.

                0 0 0 0 0 0
                Not logged in users can't 'Comments Post'.
                3
                2
                3
                Added:
                Category:

                UNA - Social Media Software Framework

                Close