Elxis CMS Forum
Support => General => Topic started by: xmanhattan on November 05, 2012, 15:03:38
-
Hello all,
I tried to create multiple eforms using data.xml and data2.xml. Even though I gave them different names in this parameters
<form name="questioneer" method="POST" action="email">
the form displays Could not generate form samplecontact!
Are multiple forms entered into the same data.xml file under separate <eforms>
or <form name="survey" method="POST" action="email">
or is it that there can only be one eform?
I thought that it would pickup multiple data.xml form files.
-
Solved!
I just tried adding the second form into the data.xml and it works.
For future reference:
<eforms>
<form name="samplecontact" method="POST" action="email">
</form>
<form name="survey" method="POST" action="email">
</form>
</eforms>
-
I think the documentation (http://wiki.elxis.org/wiki/Eforms)is very clean on this.
The XML file is one, you add more forms in the same file by separating them with the form tag.
Example taken from Elxis wiki:
<eforms>
<form name="forma" method="POST" action="email">
Form A
</form>
<form name="formb" method="POST" action="email">
Form B
</form>
<form name="formc" method="POST" action="http://www.site.com/process.php">
Form C
</form>
</eforms>