Functions act as placeholders for the data they output. Basically, you can assign the output of a function to a variable, just like any normal data.We can take the return value of a function and assign it to a variable. Assume we have pre-defined a function sum which adds two numbers together. To handle form changes and submissions, use the phx-change and phx-submit events. In general, it is preferred to handle input changes at the form level. FreeCodeCamp offers a curriculum and in this video we cover their lesson called Assignment with a Returned Value. I am writing tests for a Liveview project. I have a form wich filters a list of items. We'll dive into the Phoenix Component functionality that underpins this function.