# Information needed regarding DEPRECATION WARNING

**URL:** <https://community.forestadmin.com/t/information-needed-regarding-deprecation-warning/1472>\
**Category:** Help me!\
**Created:** [December 16, 2020, 10:06am UTC](https://community.forestadmin.com/t/information-needed-regarding-deprecation-warning/1472 "2020-12-16T10:06:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillaumejauffret](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumejauffret/32/61_2.png) [@guillaumejauffret](https://community.forestadmin.com/u/guillaumejauffret)\
**Post date:** [December 16, 2020, 10:06am UTC](https://community.forestadmin.com/t/information-needed-regarding-deprecation-warning/1472/1 "2020-12-16T10:06:12Z")

</div>

Hi,

I have this message in logs:

```javascript
DEPRECATION WARNING: Declaring `values` in a Smart Action is deprecated. Please use `load` hook.

```

Do you have any information about it?

“meta”: {  
“database\_type”: “MongoDB”,  
“liana”: “forest-express-mongoose”,  
“liana\_version”: “6.6.2”,  
“engine”: “nodejs”,  
“engine\_version”: “12.19.0”,  
“orm\_version”: “5.11.8”  
}

---

<div class="post-metadata">

**Author:** ![anon20071947](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@anon20071947](https://community.forestadmin.com/u/anon20071947)\
**Post date:** [December 16, 2020, 10:32am UTC](https://community.forestadmin.com/t/information-needed-regarding-deprecation-warning/1472/2 "2020-12-16T10:32:25Z")

</div>

Thanks for reaching out @guillaumejauffret 🙏🏼

You have an eagle eye 🦅 We just released a new beta version of our Smart Actions (with forms).  
Using hooks, it is now possible to make the form fields dynamic upon:

- **Form loading -** Load hook (fields can be pre-filled, given default values depending on the record)
- **Form fields change -** Change hook (fields values or dropdown options are now dynamic and depend on other fields’ values)

The recently introduced **Load hook** is a more powerful way to assign default values to your Smart Action form’s fields. This explains the deprecation message you are getting in the logs.

This is documented [here](https://docs.forestadmin.com/documentation/reference-guide/actions/create-and-manage-smart-actions#making-a-form-dynamic), feel free to reach out again if you need any help!

---

<div class="post-metadata">

**Author:** ![guillaumejauffret](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumejauffret/32/61_2.png) [@guillaumejauffret](https://community.forestadmin.com/u/guillaumejauffret)\
**Post date:** [December 16, 2020, 10:38am UTC](https://community.forestadmin.com/t/information-needed-regarding-deprecation-warning/1472/3 "2020-12-16T10:38:31Z")

</div>

That’s nice @anon20071947. I was expecting it!! I am going to llok at your doc. Thanks

---

<div class="post-metadata">

**Author:** ![anon20071947](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@anon20071947](https://community.forestadmin.com/u/anon20071947)\
**Post date:** [December 16, 2020, 10:43am UTC](https://community.forestadmin.com/t/information-needed-regarding-deprecation-warning/1472/4 "2020-12-16T10:43:54Z")

</div>

I remember 🙂

Apologies for not getting in touch earlier on your thread - [Use dynamic enums in smart action field](https://community.forestadmin.com/t/use-dynamic-enums-in-smart-action-field/1401).  
I wanted to test it out first since your use case includes related data with a reference.

We’ll be back with more examples and snippets in the next few weeks on our [Woodshop (Code Samples)](https://docs.forestadmin.com/woodshop/) 🤓

---

<div class="post-metadata">

**Author:** ![anon20071947](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@anon20071947](https://community.forestadmin.com/u/anon20071947)\
**Post date:** [January 8, 2021, 12:32pm UTC](https://community.forestadmin.com/t/information-needed-regarding-deprecation-warning/1472/5 "2021-01-08T12:32:05Z")

</div>

Split this topic on January 8, 2021, 12:32pm UTC

A post was split to a new topic: [Smart Action hooks - Dynamic enums on a referenced collection](https://community.forestadmin.com/t/smart-action-hooks-dynamic-enums-on-a-referenced-collection/1586)
