Forums

Is it possible to create a table(of variabl length)in a form

Njacobs 29 Jul, 2011
I'm trying to create form, that doesn't use any of the basic forms features.

I would like to input all function description, using a user input form.
Each function has a name, a code, a syntax description, for those I can each a simple field.
But each argument in the syntax has to be describes as well, and for that I would like to use a table and to make it even more difficult, the function syntax description can have 1 till x number of arguments. So the table to describe the arguments of the syntax, will require 1 till X records.

[attachment=0]example.gif[/attachment]

Is the creation of such form possibel with Chronoforms ?
If yes, how
GreyHead 31 Jul, 2011
Hi Njacobs,

This kind of form gets complicated very quickly.

Is there a practical upper limit on the number of arguments/descriptions. if it is say 10 arguments with up to 10 descriptions each then I'd probably load everything into the page - using PHP to build the HTML and hide all but the first argument then use JavaScript to unhide more arguments/descriptions as they are needed.

Note: you can have problems with validation of hidden inputs in CFv3.

Bob
Njacobs 01 Aug, 2011
Hi Bob,

yes I thought about using a fixed set of table records,e.g. 10, but abanded the idea because the 10 records would be in the way for most of the functions.
But now you launched the idea to hide the records and reveal them when needed with a javascript,...

I realize that form I want to create is a complicated one, and being a newbee user in chroneforms and joomla is not helping, either.

Can you provide me (or point me to) an example (of code javascript) how to hide the records and how to reveal one records on user request ?
GreyHead 01 Aug, 2011
Hi Njacobs,

Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6.

Bob
Njacobs 01 Aug, 2011
Hello Bob
I'm using version 3.2 in joomla 1.5, but also I have joomla 1.6 installed, there I have 4.0 RC1.8

Like I said I'm a joomla newbee, I experimented with various version of joomla and joomla extensions, in getting the job done.
In the end it seems only chronoforms can do the job, witha litle help😉
It's my preference to use joomla 1.6, I don't mind if I need to upgrade first.
Njacobs 04 Aug, 2011
Hello anyone ?

I still would like to have an example of code (javascript) how to hide the records and how to reveal one records on user request ?

Then I can start to create a prototype.
GreyHead 04 Aug, 2011
Hi NJacobs,

Sorry, a bit hectic here this week and I'm not keeping up with the posts that need loger answers.

I have a Help document for this in CFv3 that you can buy for a few $ here

I think that it should be simpler in CFv4 but haven't had time to work it though yet :-(

Bob
This topic is locked and no more replies can be posted.