Comment to 'Add/Edit forms in custom module'
  • Thank you @LeonidS , for your support. I solved this issue by the following steps.

    added this code to the Page->Code section

    array (

     'module' => 'vnd_team',

     'method' => 'form_add',

    Created one service function in module class file

    function serviceFormAdd(){

            $oForm = BxDolForm::getObjectInstance('team_form_objects', 'team_form_objects_add'); // get form instance for specified form object and display

            if (!$oForm)

                die('"team_form_objects_add" form object or "team_form_objects_add" display is not defined');

            $oForm->initChecker(); // init form checker witout any data - adding new record

           

            if ($oForm->isSubmittedAndValid()) {

                $oForm->insert ();

            }

            return $oForm->getCode(); // display form

        }