• hello,

    i created a page where someone can add his personal details and some data for his business..
    these business data are numbers..
    is it possible to add them and store the sum into a field ?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    It is possible, but you’ll need to write some custom code to do it.

    There is a filter that is invoked any time a record is updated, you can update your sum field at that time.

    I don’t have any code snippets at the moment that show how this is done, but the key points are this action

    pdb-after_submit_update

    which gets passed in the submitted data, and this public method, which gives you a way to update a single record:

    Participants_Db::write_participant( $data, $id );

    The data in that is an associative array of the data you want to write (this is where your sum would go) and the second parameter is the ID of the record.

Viewing 1 replies (of 1 total)
  • The topic ‘a request…’ is closed to new replies.