I am trying to set a field value depending upon what the user clicks on the menu.
My code is as follows:
I put this in the item.js configuration file next to the element that I want to fill it in. This is not working. How do I need to do this
I fixed it by moving my code to a function and calling that instead.