• Resolved zukenstein

    (@zukenstein)


    Hi I am successfully adding details to a separate database when someone submits a form, but I am running more than one form. How do I add the details from one form only to the DB? At the moment if I use the other form it to adds the details and I don’t want it to.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @zukenstein

    The $params array in the “cp_calculatedfieldsf_insert_in_database.php” file includes the submitted fields with their values, but it contains other information too, like “formid” with the id of the submitted form.

    To store the information of only one form in the database, you can include a conditional statement in the file and run the insertion code based on the form submitted. For example:

    
    if($params['formid'] == 1)
    {
    // Your code here
    }
    

    For pro or commercial product support please contact us directly on our site.

    Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.

    Thank you.

    Thread Starter zukenstein

    (@zukenstein)

    Ok if I need further help I will do thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add to database from one form’ is closed to new replies.