Title: Default Value
Last modified: February 12, 2021

---

# Default Value

 *  [rladha](https://wordpress.org/support/users/rladha/)
 * (@rladha)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/default-value-12/)
 * Hello,
 * I have a table with a column “START_DT”. Upon creating a new record, I would 
   like to auto display today’s date value (user still have an option to change 
   the date).
 * Under Project Template > Data Entry tab > default values- I tried multiple values
   but none off them are working. 🙁
 * Any suggestions?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdefault-value-12%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/default-value-12/#post-14039654)
 * Dear [@rladha](https://wordpress.org/support/users/rladha/),
 * Due to personal circumstances, I am currently not able to answer your question.
   I’ll get in touch as soon as possible.
 * Hope you understand,
    Peter
 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/default-value-12/#post-14083559)
 * Hi [@rladha](https://wordpress.org/support/users/rladha/),
 * Do you want to add a default value? Or do you want todays date to be used as 
   a filter? Or both?
 * Thanks,
    Peter
 *  Thread Starter [rladha](https://wordpress.org/support/users/rladha/)
 * (@rladha)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/default-value-12/#post-14084689)
 * For this scenario, I would like today’s date as a default value.
 * Btw, I noticed— calendar widget only shows up for dates/time field not for date
   field – true?
 *  Plugin Author [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * (@peterschulznl)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/default-value-12/#post-14109353)
 * Hi [@rladha](https://wordpress.org/support/users/rladha/),
 * Sorry for my late reply!!!
 * Unfortunately it is not possible to add a default date to Data Projects. I can
   add support for default date values to Data Projects, but it will take time. 
   My actual to do list is very long and growing almost every day. Sorry!
 * Alternatively, you could add a default value to your table column or add a database
   trigger. The disadvantage is that the value is not shown on insert.
 * Another alternative (but more work) is to add a default value using filter wpda_after_simple_form,
   which is documented here:
    [https://wpdataaccess.com/2020/01/29/action-hook-wpda-after-simple-form-to-add-custom-elements-to-end-of-data-entry-forms/](https://wpdataaccess.com/2020/01/29/action-hook-wpda-after-simple-form-to-add-custom-elements-to-end-of-data-entry-forms/)
   With this filter you can use javascript to add your default value.
 * What do you think?
 * Best regards,
    Peter

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

The topic ‘Default Value’ is closed to new replies.

 * ![](https://ps.w.org/wp-data-access/assets/icon-256x256.png?rev=3299063)
 * [WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards](https://wordpress.org/plugins/wp-data-access/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-data-access/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-data-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-data-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-data-access/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Passionate Programmer Peter](https://wordpress.org/support/users/peterschulznl/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/default-value-12/#post-14109353)
 * Status: not resolved