Numerator in Chronoform

Fritz 27 Jan, 2014
Is possible to enter a numerator in the form and send it, together with all other data, to the recipient?

Chronoforms 4.0.2
Joomla 3.2 over LAMP
Fritz 27 Jan, 2014
Thanks as always! We will work in the afternoon ...
Fritz 27 Jan, 2014
The module database table is not enabled, I can't follow this solution. I not use the database, partly because there aren't features to be able to use these data records (or other modules) and partly because this module are used (in general and without obligations) in parallel with a bank payment.
GreyHead 27 Jan, 2014
Hi Fritz,

Well, you can add a random number OK. If you want any kind of serial or unique number then you need to record it somewhere.

Bob

PS And, in my opinion, if you have any form dealing with money then you should be saving the results in a database to give you an audit trail.
Fritz 29 Jan, 2014
I have re-evaluated the two solutions. The idea of ​​saving forms to a database is valid regardless of the functionality of the numerator. The organizer would need a simple numerator, that indicating the actual amount of bookings, assigning each rider their own serial number. This number would be used also on the badges and book keeping. Ogni registrazione online sarebbe poi combinato con un semplice numeratore, dal numero 1 al 200. Reading the description of your CFv4 Unique ID [GH] action, it seems to me that the numbering is not progressive (but random) and is composed of a number/string of more characters. For the purpose of this motorcycle rally is not manageable.
GreyHead 30 Jan, 2014
Hi Fritz,

If you want a serial number 44, 45, 46, 47 . . . then you can use the cf_id from the newly created database record.

Bob
Fritz 31 Jan, 2014
Thanks Bob, I will create the table and then I'll see if integrate these features. Having three different modules (one per language), it would be possible to store the form requests on the same table, in order to have a unique number sequence?
GreyHead 31 Jan, 2014
Hi Fritz,

Yes no problem in using the same table for several forms as long as the input names match the column names.

But why would you have three forms for three languages. It's easier to maintain one form with multi-language settings.

Bob
Fritz 02 Feb, 2014
I've been following your valuable advice. I have created a multilingual form and connecting it to a single database. The action of sending the e-mail address is later than the db save. Which html-syntax should I use in the template that send the "CF_ID" value ?
Fritz 03 Feb, 2014
I asked you the exact html syntax (in the form template) because, not being proficient with this type of programming code interfaces (with a database 😶 ), I entered the following command but it does not work.

<table border="0" cellpadding="5" cellspacing="5">
	<tr>
		<td><b>N° Prenotazione</b></td>
		<td> 
		<pre>$form->data['upkca_chronoforms_data_Adesione_Multilanguage']['cf_id']</pre>
		</td>
	</tr>
	<tr>
		<td style="font-weight: bold"><strong>nome</strong><b> </b> </td>
		<td>{name_field} </td>
	</tr>
[...rest of the table]
GreyHead 04 Feb, 2014
Hi Fritz,

You can't just put PHP into HTML - it must be in PHP tags and the PHP needs to do something. You can either use valid PHP
<pre><?php echo $form->data['upkca_chronoforms_data_Adesione_Multilanguage']['cf_id']; ?></pre>
or better use the ChronoForms 'dot' syntax
<pre>{upkca_chronoforms_data_Adesione_Multilanguage.cf_id}</pre>

Bob
Fritz 04 Feb, 2014
Thank you for your help. It does not work even with your code, at least the number not are sent in the E-Mail.😢

I also wanted to ask why the multilanguage module does not work (by click to the Frontend view link) in the other languages ​​translated (by the multlanguage action). The Chrono_verification action will not recognize the captcha code.🤨
GreyHead 08 Feb, 2014
Hi Fritz,

Sorry I don't understand your answer :-(

Where do you want this 'numerator' to come from?

Bob
Fritz 08 Feb, 2014

Sorry I don't understand your answer


In the form (in the E-Mail-Template) and send it, together with all other data (enrolled by the guest in the module), to the recipient.

In the meantime I had to post the event website (http://mt-01.info). I used the three modules and resigned the use of a database and a numbering. I'll try, this solution to take up in some other project, maybe paid and not offered for free as the one in question.
This topic is locked and no more replies can be posted.