# Can approval form get the value from data list?

**URL:** <https://community.yeeflow.com/t/can-approval-form-get-the-value-from-data-list/101>\
**Category:** Ask the community\
**Created:** [September 27, 2022, 8:53am UTC](https://community.yeeflow.com/t/can-approval-form-get-the-value-from-data-list/101 "2022-09-27T08:53:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Leung](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.yeeflow.com/tim_leung/32/145_2.png) [@Tim\_Leung](https://community.yeeflow.com/u/Tim_Leung)\
**Post date:** [September 27, 2022, 8:53am UTC](https://community.yeeflow.com/t/can-approval-form-get-the-value-from-data-list/101/1 "2022-09-27T08:53:59Z")

</div>

Hi

I have issue about approval form with data list  
In my case i want to build a approval form for annual leave  
I create a data list “Employee Detail” with column “Annual Leave” number  
then i build the form field input the Annual Leave day(s) request.  
so how can i get the “Annual Leave” value from the data list  
and check the day(s) is valid before submit the form

The other issue about “Set Content List” in workflow  
Is it possible handle the “Set Content List” update fail (not match the condition) then “sequence flow” back to reject the form?

Thank you.

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [October 14, 2022, 11:51am UTC](https://community.yeeflow.com/t/can-approval-form-get-the-value-from-data-list/101/2 "2022-10-14T11:51:50Z")

</div>

Dear Tim, you can use [listLookup](https://support.yeeflow.com/hc/en-us/articles/900002193063-Using-yeeflow-predefined-functions-in-expression-editor) function in expression editor to retrieve value from a data list. The expression can be used in custom validation, calculated control, or actions.  
I am afraid that there’s no updated count returned from “Set Content List” activity currently. Suggest to have a validation on form submission for now.
