Forums

Form won't submit after adding HTML

MichaelD 02 Oct, 2017
Hey,

Been successful so far in using ChronoForms V6,until I added HTML to my form that does some calculations.
Before, submitting the form worked like a charm, but now my 'send' button shows the 'clicked' animation, but nothing else happens.

Any idea what I might've done wrong for this to occur?

Thanks,


Michael
Max_admin 02 Oct, 2017
Hi Michael,

What was the code you have added exactly ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
MichaelD 02 Oct, 2017
Hey,

I'd been struggling with it for about an hour and then decided to post. As luck would have it, I solved it myself about 20 minutes lateer, but I couldn't edit my post because I'm new here.
However, another problem has now occured, though that might be easier to solve. The values from that HTML part have to be sent out my e-mail. I've been doing this via {AUTO_FIELDS}, which works like a charm. But I don't know how to get the fields I created in HTML to be picked up by {AUTO_FIELDS}.

I know I could probably do this with ChronoForms, but I'm honestly not very good at this.

      <table id="table6">
        <tbody>
          <tr>
            <td width="486"><h4><b>Het maximum aantal kaarten is 8, uitgezonderd feesteling(en).</b></h4></td>
          </tr>
          <tr>
            <td><h4>Feesteling(en): </h4></td>
            <td width="50" align="left" valign="baseline"><h4 style="text-align: center">
              <input name="Aantalfeestelingen1" type="text" id="aantalfeestelingen" size="3">
            </h4></td>
            <td><h4> </h4></td>
            <td><h4>0</h4></td>
            <td><h4>   euro </h4></td>
          </tr>
          <tr>
            <td><h4>Kinderen tot 3 jaar: </h4></td>
            <td width="50" align="left" valign="baseline"><h4 style="text-align: center">
              <input name="AantalKleintjes" type="text" id="aantalkleintjes" size="3">
            </h4></td>
            <td><h4> </h4></td>
            <td><h4>0 </h4></td>
            <td><h4>   euro </h4></td>
          </tr>
          <tr>
            <td><h4>Kinderen van 3 tot 12 jaar: </h4></td>
            <td width="50" align="center" valign="baseline"><input name="AantalKinderen" type="text" id="aantalkinderen" onChange="PrijsKinderen.value = this.value*3; Totaal.value = PrijsVolwassenen.value*1+PrijsKinderen.value*1; Totaalpersonen.value = this.value*1+Volwassenen.value*1" value="" size="3"></td>
            <td><h4>    aan €3  </h4></td>
            <td><input name="PrijsKinderen" type="text" id="prijskinderen" value="0" size="6" readonly="readonly"></td>
            <td><h4>   euro </h4></td>
          </tr>
          <tr>
            <td><h4>Volwassenen: </h4></td>
            <td width="50" align="center" valign="baseline">
              <label for="Volwassenen"></label>
              <input name="Volwassenen" type="text" id="Volwassenen" size="3" maxlength="1" onChange="PrijsVolwassenen.value = this.value*6; Totaal.value = PrijsVolwassenen.value*1+PrijsKinderen.value*1; Totaalpersonen.value = this.value*1+AantalKinderen.value*1">
         </td>
            
            <td><h4>   aan €6    </h4></td>
            <td><input name="PrijsVolwassenen" type="text" id="prijsvolwassenen" value="0" size="6" readonly="readonly"></td>
            <td><h4>  euro </h4></td>
          </tr>
          <tr>
            <td><h4>Totaal aantal betalende personen:
            <label for="Totaalpersonen"></label>
            <input type="text" name="Totaalpersonen" id="Totaalpersonen" size="3" readonly="readonly" value="0" ></h4></td>
            <td width="50" align="left" valign="baseline"><h4> </h4></td>
            <td><h4>Totaal</h4></td>
            <td><hr size="3" noshade>              <input name="Totaal" type="text" id="totaal" value="0" size="6" readonly="readonly"></td>
            <td><h4>   euro  </h4></td>
          </tr>
        </tbody>
      </table>
     
<br>

</body>


That's the HTML. It's bacially for ordering tickets. When a user fills out the number of children and adults, the form automatically generates the price. I need to receive those values via e-mail, and so should the users.

Thanks for the quick reply.
Max_admin 03 Oct, 2017
Hi Michael,

It's not possible to include custom fields in the AUTO_FIELDS, you will need to list them in the email body:
Label: {data:field_name}


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.