I have read numerous threads on this and I think I must be being stupid but I just cannot get it to work correctly.
My form field is called UserName and I have tried the below
In the events
onBeforeInsert -> {UserName} = [usr_login] ;
and I have tried also doing it in the initial value in the field setting
When I run the form it does not load essentially asks me to provide the username before allowing me to carry on to the form.
In the Sec_Users table the UserName is called login so I really cannot see what I could be doing wrong?