Elxis CMS Forum

Support => General => Topic started by: xmanhattan on November 05, 2012, 15:03:38

Title: eforms multiple data.xml form files
Post 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
Code: [Select]
<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
Code: [Select]
<eforms> or
Code: [Select]
<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.
Title: Re: eforms multiple data.xml form files
Post by: xmanhattan on November 05, 2012, 15:07:38
Solved!

I just tried adding the second form into the data.xml and it works.

For future reference:
Code: [Select]
<eforms>
<form name="samplecontact" method="POST" action="email">

</form>
<form name="survey" method="POST" action="email">

</form>
</eforms>
Title: Re: eforms multiple data.xml form files
Post by: datahell on November 05, 2012, 22:50:26
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:

Code: [Select]
<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>