Title: default value on form() function
Last modified: February 1, 2022

---

# default value on form() function

 *  Resolved [ominem](https://wordpress.org/support/users/ominem/)
 * (@ominem)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/default-value-on-form-function/)
 * Hi, I tried to replicate the example on: [https://docs.pods.io/code/pods/form/](https://docs.pods.io/code/pods/form/)
   
   for my own pod like this:
 *     ```
       $mypod = pods( 'expert_woman' );
       $params = array( 'researcher_name', 'surname', 'researcher_email_contact', 'researcher_phone', 'researcher_photo', 'researcher_country', 'research_interests','career_stage', array( 'added_by'=> array( 'default' => '1' )  )  );
       echo $mypod->form( $params );
       ```
   
 * but I’m getting an “Invalid configuration” message without error.
    Any idea what
   could be the problem? Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/default-value-on-form-function/#post-15314993)
 * Hi [@ominem](https://wordpress.org/support/users/ominem/)
 * This might be your last param, it doesn’t include a key.
 * Cheers, Jory
 *  Thread Starter [ominem](https://wordpress.org/support/users/ominem/)
 * (@ominem)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/default-value-on-form-function/#post-15315108)
 * yes, the problem was the **array ** if remove the array and only write ‘added_by’
   like the other atribbutes works fine:
    `$params = array( 'researcher_name', '
   surname', 'researcher_email_contact', 'researcher_phone', 'researcher_photo','
   researcher_country', 'research_interests','career_stage', 'added_by'=> array('
   default' => '1' ) );` Thanks
    -  This reply was modified 4 years, 2 months ago by [ominem](https://wordpress.org/support/users/ominem/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘default value on form() function’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

 * [default value](https://wordpress.org/support/topic-tag/default-value/)
 * [form](https://wordpress.org/support/topic-tag/form/)

 * 2 replies
 * 2 participants
 * Last reply from: [ominem](https://wordpress.org/support/users/ominem/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/default-value-on-form-function/#post-15315108)
 * Status: resolved