• Resolved kasper11

    (@kasper11)


    Hi Tobias,

    I have an idear, but dont know where to start – so I hope somone in here might help:)

    I want to create a form input field, so my visitors can type in a number – which then will “change” or add up the numbers in the table.

    Quick example (hope you understand it :p)
    eg.:

    Input form: [1]

    X | Y
    A | 2
    B | 3
    C | 4
    ——————

    Input form: [2]

    X | Y
    A | 4
    B | 6
    C | 8

    Any idear where I should start?

    Again, your plugin is working amazingly on my site! Thanks alot!
    https://www.kalorielex.dk (if u wanna see what i did with it :p)

    https://www.ads-software.com/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Sorry, that’s not really possible with TablePress. TablePress can show tables, but it does not have functionality built-in for form fields.
    You could of course add the HTML code for form fields into the table, and those would be displayed. You would then however need custom JavaScript code that reads the values from the form fields and does some calculations with them.
    It’s however not possible to save the data that the user typed to the table.

    Regards,
    Tobias

    Thread Starter kasper11

    (@kasper11)

    Hi,

    I was afraid I had to do it with the JavaScript code… thanks anyway ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    you could also do it with PHP, but then you would have to submit the form fields to a script on the server.
    TablePress can’t really help with that, however. Sorry.

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dynamic table with user input’ is closed to new replies.