# Declare Expression not showing result when triggered from the Create Stage

**URL:** <https://forums.pega.com/t/declare-expression-not-showing-result-when-triggered-from-the-create-stage/8191>\
**Category:** General\
**Tags:** 8-6, app-studio, dev-designer-studio, case-management\
**Created:** [September 3, 2024, 6:33pm UTC](https://forums.pega.com/t/declare-expression-not-showing-result-when-triggered-from-the-create-stage/8191 "2024-09-03T18:33:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SANKARG16834917](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@SANKARG16834917](https://forums.pega.com/u/SANKARG16834917)\
**Post date:** [September 3, 2024, 6:33pm UTC](https://forums.pega.com/t/declare-expression-not-showing-result-when-triggered-from-the-create-stage/8191/1 "2024-09-03T18:33:52Z")

</div>

Hi, I am new to Pega and I am facing the below problem. Kindly help.

I have created a case and added some steps to collect user data in the Create Stage in Pega 8.6. I am having two date inputs and I want to show the difference between the two dates on screen.

So I have applied a Declare Expression. But the difference is not getting displayed on the screen, while the result of the Declare Expression is correctly getting populated in pyWorkPage.

So is it happening because I have created the Declare Expression in the Create Stage? If this is the cause, then kindly help me with the solution. How can I run an expression in the ‘Create’ stage? I am providing the steps below that I encountered while running the case.

 ![Pega.jpg](https://pega1.discourse-cdn.com/pega/original/2X/b/b46bced3520e29192e31f0ffa1d34d1968324b8d.jpeg)

 ![Pega.jpg](https://pega1.discourse-cdn.com/pega/original/2X/b/b46bced3520e29192e31f0ffa1d34d1968324b8d.jpeg)

---

<div class="post-metadata">

**Author:** ![Mohd\_Qizer\_Uddin](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/mohd_qizer_uddin/32/8753_2.png) [@Mohd\_Qizer\_Uddin](https://forums.pega.com/u/Mohd_Qizer_Uddin)\
**Post date:** [September 4, 2024, 3:46am UTC](https://forums.pega.com/t/declare-expression-not-showing-result-when-triggered-from-the-create-stage/8191/2 "2024-09-04T03:46:57Z")

</div>

Hi @SANKARG16834917,

Please add event “Change” and action “Refresh” to Duration property

Refer below image for reference

 ![Expression.png](https://pega1.discourse-cdn.com/pega/original/2X/d/d27a1f9d021806a68c58676af2543ea868ecfbe3.png)

Regards,

Mohd Qizer Uddin

---

<div class="post-metadata">

**Author:** ![SANKARG16834917](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@SANKARG16834917](https://forums.pega.com/u/SANKARG16834917)\
**Post date:** [September 4, 2024, 8:21am UTC](https://forums.pega.com/t/declare-expression-not-showing-result-when-triggered-from-the-create-stage/8191/3 "2024-09-04T08:21:07Z")

</div>

@Mohd Qizer Uddin

Thank you so much! It is working.
