Modify

Opened 12 months ago

Last modified 12 months ago

#11233 new defect

Can I use WikiForms to update a table?

Reported by: matt@… Owned by: asic_druide
Priority: normal Component: WikiFormsPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

Is there a way to use the forms plugin to add a row to a basically static table? I'd like to use it to add rows to a release table for internal use in my software department. I'd appreciate any assistance if it is possible.

Attachments (0)

Change History (4)

comment:1 Changed 12 months ago by anonymous

Yes you can. (at least how i understood your question)

{{{
#!WikiForms

|| static table row 1 col 1                || static table row 1 col2     || static table row 1 col3
|| static table row 2 col 1                || static table row 2 col2     || static table row 2 col3
|| <tf>select:simple_select:1 2 3 4</tf>   || <tf>input:simple_input</tf> || <tf>checkbox:simple_checkbox</tf>

}}}

Please see also the other examples on the wiki page ;-)

comment:2 Changed 12 months ago by matt@…

Unfortunately that's not quite what I meant, or else I don't know what to do with the inputs from the form.

What I'm looking for is a way to add a row to a table on the page, through the use of a form. The Table has a few columns, and the bottom (or top, conceivably) row is a set of input fields. You fill in the form row, hit "submit" and the table is updated with all of the input from the form row, pushing a new entry on to the table.

Does that make sense? Perhaps some javascript is necessary? I'm just not sure how to add data to the table from the input boxes.

comment:3 Changed 12 months ago by anonymous

...that would mean that a form-submit changes a wiki-page?!?

Possible is nearly everything but this use-model is not forseen.

comment:4 Changed 12 months ago by matt@…

Yes, that's what I'm describing, basically. Any ideas on how?

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.