I am attempting to set a global variable upon validation of the login submission of a control form with only 2 fields (user_id and password). We want global variable to help us set the default or initial value of a ROW_ADDED_ID field that sits on the 2nd form which the use is redirected to upon successful validation. I can not seem to find where I am going wrong but I can confirm the authentication works but as soon as I add the lines of code to set the global variable the form changes significantly when I run the application. All I end up seeing is a basic form with one field and it is the name of my global variable. If I comment out the lines setting the global variable the login form loads as intended from a format perspective but I do not get a global variable to be set.
You are seeing this blank form with this field, because the variable has not been declared / set previously in the first form.
You need to set & pass data to the variable, then the blank form will go away.