# OnInputFieldUpdated

<table data-full-width="false"><thead><tr><th width="254">Parameters</th><th></th></tr></thead><tbody><tr><td>string</td><td>The string value of the input field.</td></tr></tbody></table>

{% code overflow="wrap" lineNumbers="true" fullWidth="true" %}

```csharp
using UnityEngine;
using TankAndHealerStudioAssets;

public class ChatBoxExample : MonoBehaviour
{
	// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
	public UltimateChatBox chatBox;


	void Start ()
	{
		chatBox.OnInputFieldUpdated += ( message ) =>
		{
			print( $"Input Field Updated: {message}" );
		};

		// OR //

		chatBox.OnInputFieldUpdated += OnInputFieldUpdated;
	}

	void OnInputFieldUpdated ( string message )
	{
		print( $"This also works! Input Field Updated: {message}" );
	}
}
```

{% endcode %}
