I have some doubts on this topic. How can I make my variable have the same value as the value in a form field?
Form has a field that consists of a drop down menu (lookup) in order to select one possible name. I am creating a class and one of the variables has to have the same value as the value present in that form. How can I access the form and say, for example:
string myVariable = formVariable;
EDIT:
To clarify, for example, I choose the name Julius Ellis on the form field.
In the external class (not connected to the form), I want to say that string myVariable must have the name Julius Ellis. If I then change the form field to Kendall Baptiste, the variable should now have the name Kendall Baptiste.