Hey there Sarah,
You may refer to this guide here: Manage Environment Variable using Form
This guide involves the use of bean shell to obtain environment variables.
Hope this helps!