1
mdmarek
Call to undefined function displayForm()
  • 2005/9/2 0:55

  • mdmarek

  • Just popping in

  • Posts: 1

  • Since: 2005/9/2 0


I am trying to display a form created in Formulize. I am attempting to do this as with:

1. created a custom block set as "script php"
2. as the content of the block I have:

displayForm("1");

When I try to view the page I get the following error back:

Fatal error: Call to undefined function displayForm() in /share/www/innovations.com.br/public_html/html/class/xoopsblock.php(146) : eval()'d code on line 1
Notice [PHP]: Undefined variable: foundId in file modules/iMenu/blocks/imenu.php line 39


I have looked through the block basic and Block Advanced guides. In addition I have read the "Using Formulize and Pageworks to Create Custom Applications on the XOOPS Website Platform" guide, but was unable to find anything that would help me.

2
jegelstaff
Re: Call to undefined function displayForm()

Hi there, I'm very sorry we didn't answer this sooner. We have been used to working only in the dev.xoops.org site, but will be monitoring these forums more closely now.

Anyway, the problem you ran into is probably because you did not include the necessary files in your block before using displayForm there. You would need to add:

include_once XOOPS_ROOT_PATH "/modules/formulize/include/formdisplay.php";


displayForm is in that file and is not available unless that file has been included already in your code. Pageworks does this for you, but if you are putting custom PHP code in a block, then you have to do it manually.

If you would like to discuss development issues in detail, please head over to the support forums for Formulize on dev.xoops.org where we try to centralize all relevant info.

Good luck,

--Julian
Technical Architect - Freeform Solutions
Formulize - custom registration forms, ad hoc forms and reports

Login

Who's Online

301 user(s) are online (234 user(s) are browsing Support Forums)


Members: 1


Guests: 300


margoritka,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits