You can do that in the script when you create the input field. If you want to do it in the front end you can try using Dynamic Update actions. Note, values in input fields are just values, not expressions. So a value osuser() is just a string value. It won't dynamically change with the user.