---
title:        "Using K# transformations in form fields"
description:  "Have you ever struggled with transforming the selected value of a drop down list into a human readable form? The combination of K# and Kentico forms allows you to just do that without even breaking a sweat."
url:          https://www.jeroenfurst.nl/blog/using-k-transformations-in-form-fields
date:         2015-02-03
category:     Macros and K#
tags:         [Macros and K#, Forms]
reading_time: 1
---

# Using K# transformations in form fields

> Have you ever struggled with transforming the selected value of a drop down list into a human readable form? The combination of K# and Kentico forms allows you to just do that without even breaking a sweat.

Let me show how it works via this quick example (which doesn't make sense in real world scenarios but was way fun to build):

- **Step 1:** Create a new online form.
- **Step 2:** Add some fields like you are used to.
- **Step 3:** Create one field (i.e. MacroField) and configure it as follows:

![K# in form field](~/getContentAsset/207ddca9-8989-4135-98d3-3d9b62a478c8/310c1ea5-13ca-4d75-95a0-620f51989b44/ddcfad43_macro_form_field.PNG.PNG?width=597&height=218)
 
 And behold the amazing result:
 
 ![K# power animation](~/getContentAsset/08ddeb29-9eee-4bd0-876a-65d640bfd28a/310c1ea5-13ca-4d75-95a0-620f51989b44/00b6fe53_animation.gif.gif)
 *FYI: In my example the name field has a depending field and the MacroField depends on another field.*
 
 Happy hacking! :)