Welcome, Guest

Automatic incremental numbering field
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Automatic incremental numbering field

Automatic incremental numbering field 2 years, 2 months ago #10127

Someone now how to create a counter with a Textfield?
The idea is to have an automatic numbering Textfield?

It´s possible to create something like two fields in a row to put in one field quantity an in the other description?


Regards
  • josecarlos
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0

Re:Automatic incremental numbering field 2 years ago #11704

I would like to create a small text or hidden field in my form which uses auto-increment a number and place it in that field each time the form 'submit' button is pressed. Some javascript function to make the auto-increment?

Using the ID of the saved record database is not possible because I have 5 forms. Because the ID of the record database is for example 2 and i used another form the ID will already be 3 when it should be 1.
There should be a record ID for each form, but do not know how to do this.

any help would be appreciated,

regards
  • josecarlos
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Karma: 0
Last Edit: 2 years ago by josecarlos.

Re:Automatic incremental numbering field 9 months, 1 week ago #37363

I would need to do this too. How can we do it?? I have paid for support but never get responses to my tickets.
  • mercer1122
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0

Re: Automatic incremental numbering field 9 months ago #38360

This will solve your problem... just change the form= "your form id"


<?php
$this->execPieceByName('ff_InitUtilities');
$this->execPieceByName('ff_SubmitUtilities');
if (!function_exists('ff_selectValue')) $this->execPieceByName('ff_selectValue');
$value = ff_selectValue("SELECT count(*) FROM #__facileforms_records where form=23");
$value = ($value + 1);
return $value;
?>


/Steve
  • Betrakta
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 1
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.52 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany