# How can I add logic inside the kirby panel?

**URL:** <https://forum.getkirby.com/t/how-can-i-add-logic-inside-the-kirby-panel/20099>\
**Category:** Questions\
**Tags:** v3\
**Created:** [November 20, 2020, 5:02pm UTC](https://forum.getkirby.com/t/how-can-i-add-logic-inside-the-kirby-panel/20099 "2020-11-20T17:02:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![frq2000](https://avatars.discourse-cdn.com/v4/letter/f/e36b37/32.png) [@frq2000](https://forum.getkirby.com/u/frq2000)\
**Post date:** [November 20, 2020, 5:02pm UTC](https://forum.getkirby.com/t/how-can-i-add-logic-inside-the-kirby-panel/20099/1 "2020-11-20T17:02:17Z")

</div>

Dear kirby community  
I am working on a web catalogue, which displays the estimated price of jewelry. The estimated price is calculated using several price factors (e.g. gold price \* weight \* working time) which a stored in article txt file. I solved the logic for the frontend with a php calculation. Is there a way to calculate multiple input fields live in the panel and display the result there?  
As the calculation is not very complex, I would not have to use my PHP function directly

Thank you very much for your input. This community is a great help.

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [November 20, 2020, 5:33pm UTC](https://forum.getkirby.com/t/how-can-i-add-logic-inside-the-kirby-panel/20099/2 "2020-11-20T17:33:57Z")

</div>

You can display the result of a calculation in the Panel, but not as live result while you are typing, unless you create a custom field.
