xoops forums

loukaum

Just popping in
Posted on: 2/2 18:39
loukaum
loukaum (Show more)
Just popping in
Posts: 84
Since: 2003/11/2
#1

Dinamic input fields using XoopsThemeForm?

Hello all,

It is possible to implement dynamic input fields like this example, using XoopsThemeForm class?

Mamba

Moderator
Posted on: 2/3 4:41
Mamba
Mamba (Show more)
Moderator
Posts: 10518
Since: 2004/4/23
#2

Re: Dinamic input fields using XoopsThemeForm?

I am not sure if I've seen it done on the user side, but on the Admin side, yu can take a look at xForms:
https://github.com/XoopsModules25x/xforms

You can also take look at Publisher, and how it creates sub-categories:
/modules/publisher/admin/category.php?op=mod
Support XOOPS => DONATE
Use 2.5.9 | Docs | Modules | Bugs

Mamba

Moderator
Posted on: 2/3 4:48
Mamba
Mamba (Show more)
Moderator
Posts: 10518
Since: 2004/4/23
#3

Re: Dinamic input fields using XoopsThemeForm?

If I am not mistaken, Mage was recently working on creating dynamic fields with his new module:
https://github.com/GregMage/xmarticle

that you should use with another module, like this:
https://github.com/GregMage/xmstock

But I didn't really tested, so I don't know how it exactly works.
Support XOOPS => DONATE
Use 2.5.9 | Docs | Modules | Bugs

Mamba

Moderator
Posted on: 2/3 4:57
Mamba
Mamba (Show more)
Moderator
Posts: 10518
Since: 2004/4/23
#4

Re: Dinamic input fields using XoopsThemeForm?

You can also use the jQuery and then save the data as an array to a single field, see this tutorial
Support XOOPS => DONATE
Use 2.5.9 | Docs | Modules | Bugs

loukaum

Just popping in
Posted on: 2/3 15:09
loukaum
loukaum (Show more)
Just popping in
Posts: 84
Since: 2003/11/2
#5

Re: Dinamic input fields using XoopsThemeForm?

Thanks Mamba! I will try the suggestions!